Perl Golf is just plain dumb, but Perl Golf can be done using less lines. Disclaimer: this will not work on Win32, fortunately I never have to use Perl on Win 32. The scripts I had on the other systems would read from /var/var/tmp/. On OS X there is a symlink to /private/var in the root partition, but it seemed to me that relying on the existence of symlinks is not a particularly good idea. I searched around my trusty Perl documentation and of course, online at http://perldoc.org/ and found I could use a special variable.”]
Source: https://blog.talosintelligence.com/2008/10/perl-snippet.html