Help for this page

Select Code to Download


  1. or download this
    open SOME_FH, ">", "somefile" or die "Failed to open somefile. $!";
    
    print SOME_FH "Test\n";
    
  2. or download this
    my $fh = undef;
    open $fh, ">", "somefile" or die "Failed to open somefile. $!";
    
    print $fh "Test\n";