If you use exec you'll "overwrite" the current instance of your script with a new invocation.
exec( $0, @ARGV ) or die "Can't re-exec myself: $!\n";
--
We're looking for people in ATL
In reply to Re: How to re-execute self?
by Fletch
in thread How to re-execute self?
by Eyck
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |