Seem to me it's simpler if you avoid the recursion altogether.
script:
#!/bin/sh wrapper real_script "$@"
wrapper:
#!/bin/sh perl "$@"
real_script:
#!perl -w 4; print("Hello, World\n");
$ script Useless use of a constant (4) in void context at real_script line 2. Hello, World
In reply to Re: Perl wrapper
by ikegami
in thread Perl wrapper
by weigand
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |