Help for this page

Select Code to Download


  1. or download this
    C:\>type test.pl
    sub open_file_handle { open FILE, ">c:/test.txt" or die $! }
    ...
    C:\>type test.txt
    This file handle is not closed!
    C:\>
    
  2. or download this
    open my $fh, $file or die $!;