![]() |
|
"be consistent" | |
PerlMonks |
Re: Avoiding Hardcoded path of Perl.exe in codingby thunders (Priest) |
on Jan 07, 2010 at 05:21 UTC ( [id://816030]=note: print w/replies, xml ) | Need Help?? |
On Mac OS X v10.6 $^X does not give an absolute path, Instead I just get "perl". On linux I get "/usr/bin/perl" for $^X, on windows I get "C:\Perl\bin\perl.exe" for $^X. If you happen to need the full path, and you want it to work cross platform, this should always give a full path, regardless of platform:
In Section
Seekers of Perl Wisdom
|
|