... print "Rerunning $0 --restarted @ARGV\n"; exec $0, '--restarted', @ARGV or print STDERR "couldn't exec foo: $!"; ...