![]() |
|
Perl-Sensitive Sunglasses | |
PerlMonks |
Re: find the shell inside a perl scriptby ikegami (Patriarch) |
on Jun 22, 2006 at 15:55 UTC ( #556927=note: print w/replies, xml ) | Need Help?? |
`echo \$0` should always return sh. Backticks, system and exec use sh (on platforms with that shell). You want $ENV{SHELL} on unix OSs and $ENV{COMSPEC} in DOS/Windows.
In Section
Seekers of Perl Wisdom
|
|