
Execute a sh script under perl and sh: sh script; perl script?
I can execute the following perl scripts under either shell or Perl
====
eval 'exec /usr/local/bin/perl5 -S $0 ${1+"$@"}'
if 0;
[perl scripts ...]
====
i.e.
sh script
perl script
How do I execute a sh script under either shell or Perl
simililar to what shown above?
Thanks.
--
Michael Wang
mw...@mindspring.com
http://www.**-**.com/ ~mwang