exec( $^X, $0, @ARGV ) or die "Can't re-exec myself($^X,$0): $!\n";
doesn't require that $0 be written such that the kernel knows that it is a Perl script and might prevent the kernel from picking a different version of Perl than was originally used.
- tye
In reply to Re^2: How to re-execute self? ($^X)
by tye
in thread How to re-execute self?
by Eyck
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |