in reply to Re: How to re-execute self?
in thread How to re-execute self?
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
|
|---|