Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
        open STDOUT, ">&", $saved_stdout or die "open: $!";
    }
    print "output of foo(): $output";
    
  2. or download this
    fileno(STDOUT): 1
    output of foo(): something being sent to stdout