in reply to wrapper script to conditionally exec different perls?
Note that if you have NFS problems, -x "/path/to/perlY" may take a really long time, so doing this check for every invocation of a program that expects to be run by perl may be confusing to users.
How did your second approach fail, and why? I'm not exactly sure what error conditions there are that would make it fail. Maybe you need to add the invoked script name $0 after perlX in the command line, unless the argument is -e? You might need to (re)implement a Perl option parser for that, mostly from perlrun to mirror that.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: wrapper script to conditionally exec different perls? (#!->#!->#!->...)
by tye (Sage) on Feb 15, 2012 at 18:55 UTC | |
by stackspace (Initiate) on Feb 15, 2012 at 22:41 UTC | |
by Eliya (Vicar) on Feb 15, 2012 at 20:22 UTC | |
|
Re^2: wrapper script to conditionally exec different perls?
by stackspace (Initiate) on Feb 15, 2012 at 22:06 UTC |