`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 reply to Re: find the shell inside a perl script
by ikegami
in thread find the shell inside a perl script
by jesuashok
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |