in reply to Re: Runs from Command Line but NOT from Perl
in thread Runs from Command Line but NOT from Perl

(the actual rules may be more complicated)

It uses perl -V:sh, which someone could change to something other than /bin/sh, but that would be a very weird (i.e. inadvisable) thing to do on a system with /bin/sh.