Help for this page

Select Code to Download


  1. or download this
    sub openOut {
        my $filename = shift;
    ...
        select $fh;
        return $fh;
    };
    
  2. or download this
    # void context, no handle to close
    openOut ("file1");
    ...
    my $handle = openOut ("file2");
    print "bar\n";
    closeOut ($handle);