Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Avoiding Hardcoded path of Perl.exe in codingby Corion (Patriarch) |
on Jan 06, 2010 at 20:13 UTC ( [id://815975]=note: print w/replies, xml ) | Need Help?? |
Just use $^X, which contains the currently running Perl executable. You'll need to properly quote it if you're interpolating it into a command line, if $^X contains whitespace:
In Section
Seekers of Perl Wisdom
|
|