in reply to find the shell inside a perl script
`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.
|
---|
Replies are listed 'Best First'. | |
---|---|
A reply falls below the community's threshold of quality. You may see it by logging in. |
In Section
Seekers of Perl Wisdom