in reply to Re: How to use dynamic execution path instead of absolut.
in thread How to use dynamic execution path instead of absolut.

Besides the useless use of backticks pointed out in another subthread, this is also dangerous code:
`which perl` -x $0 $*
What if I invoked this script as:
yourscript "randal l." schwartz
I've just passed two parameters, but your reinvocation is going to give three parameters to the Perl program.

Quoting matters. The example in perlrun is very carefully constructed to avoid quoting problems.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.