Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w                                                  
                            
    ...
            }
            $SIG{CHLD} = \&REAPER;  # still loathe sysV
    }
    
  2. or download this
    #!/usr/bin/env perl
    use strict;
    ...
    while ( <$remote> ) { print;last; }
    close $remote;
    print "Socket gone, exiting\n";
    
  3. or download this
    Parent 28877: Server up
    Parent 28877 after forking
    ...
    Child 28949: Sent READY, closing
    Parent 28877: Reaped 28949
    Parent 28877: Should never get here
    
  4. or download this
    use Win32::Console::ANSI;
    $|=1;
    ...
      print "\e[s$_";    # store pos, print output
      sleep 3;
    }