Help for this page

Select Code to Download


  1. or download this
    print FH $whatever;
    
  2. or download this
    open(FH, "output.txt");
    my $oldfh = select(FH);
    sub_that_writes_to_file();
    select $oldfh;              # reset to whatever it was
    close FH;