sub restart{ system(1, $0); # windows trick to launch a new process exit; # will need to exit original script }