Help for this page

Select Code to Download


  1. or download this
    #! perl -slw
    use strict;
    ...
    else {
        print "OpenProcess failed: $^E";
    }
    
  2. or download this
    do{ 
        my $pid = open my $in, "p:/test/dummy.exe |" 
    ...
        printf "\r%7d : $pid    ", scalar keys %pid; 
        print " Reused\n\n" if $pid == 65992 ## The first pid
    } for 1 .. 1_000_000;
    
  3. or download this
      14281 : 65992     Reused
    
    ...
    
    
      19112 : 60132    Terminating on signal SIGINT(2)