good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
How to use dynamic execution path instead of absolut.by RuneK (Sexton) |
on Jan 14, 2003 at 09:53 UTC ( [id://226773]=perlquestion: print w/replies, xml ) | Need Help?? |
RuneK has asked for the wisdom of the Perl Monks concerning the following question:
Hi all, Usually when I create a perl script I add the absolut path to the perl binary in the top like this: #!/usr/bin/perl But lately I have been working with multible sites using VERY different path's for the perl binary and you can in no-way-what-so-ever get them to unify the path's. So my question is: Is there a way to use the perl binary path as defined in the PATH variable in the perl script and thereby making the path in the script dynamic? Thanks in advance, Rune
Back to
Seekers of Perl Wisdom
|
|