Help for this page

Select Code to Download


  1. or download this
    my $destroy = $0;
       $destroy =~ s/\w+(\.pl)?$/destroy.pl/;
    my $process;
    ...
                           $^X, qq(perl.exe $destroy),
                           0, DETACHED_PROCESS,
                           '.') || &error();
    
  2. or download this
    open(CHILD, qq(|"$^X" $destroy)) || &error();