inelukii has asked for the wisdom of the Perl Monks concerning the following question:
While technically not a perl question, here goes...
At my company, we work on Linux and SGI machines. For some unknown reason, perl is installed in /usr/bin/perl on Linux and /usr/local/bin/perl on SGI. Needless to say, this is extremely cumbersome when you want to run the same script on either OS. Our current solution is to have two versions of the script and have users execute a csh script that checks the OS type and calls the perl script with the appropriate #! line. Other than the #! line, the code is identical. Of course, whenever I update one, I have to copy it to the other and change the #! line. This is annoying.
Does anyone know of a way around this other than pestering my sysadmins to fix the location?