flounder has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
I am using some perl scripts here at work in conjunction with another site. The users at the other site have written the scripts and invoke them with the top line of:
#!/usr/local/bin/perl. However, at our site, we use perl from /usr/bin. We want to come up with a consistent way of using the same scripts with no modifications what so ever. Is there a way to do this? I know you can invoke the script by putting the version you want in front of it, but this requires modifications, and not very helpful, as in the following case:
/usr/bin/perl myscript.pl
.
Is there some sort of environment variable or something we can use to say where our perl executable is located?
Thanks for the help!
Randy
|