Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    $i=0;
    ...
    close SESAME;    # This (or the termination of the program)
                     # closes the pipe. The other side recieves this
                     # as an EOF (End OF File).
    
  2. or download this
    #!/usr/bin/perl
    
    while ($in=<STDIN>) {                # Read from <STDIN> until <EOF>
            chomp $in;                   # Remove <NL>
            print "By Kiddy.pl: $in\n";   # Print out what we read
    }