Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    print CAT "This was written to cat with output redirected\n";
    close(CAT);
    print "all done\n";
    
  2. or download this
    about to open cat in a sub-process
    This was written to cat without output redirected
    all done