Thanks for the reply. That definitely solves the problem.
I just wish there was an easier way. I basically have to tell everyone at my company that they need to cut and paste this little piece of code at the top of their perl scripts. The "/bin/sh" at the top may be a bit confusing to them also.
Still, it's better than the alternative: Having to write a shell script every time you want to run a perl script (two files instead of one).
I wish /bin/env would just allow me to pass command line arguments to perl. Why can't it? And is there something like /bin/env that would?
In reply to Re^2: Perl wrapper
by weigand
in thread Perl wrapper
by weigand
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |