Help for this page

Select Code to Download


  1. or download this
    open my $filehandle, ">", $file
    
  2. or download this
    open my $filehandle, $file 
      or die "can't open $file: $!";
    
  3. or download this
    $ perl -e 'use warnings; use strict; my $filename = "/tmp/hey"; open m
    +y $file, $filename'
    $ perl -e 'use warnings; use strict; my $filename = "/tmp/hey"; open m
    +y $file, $filename;'
    Parentheses missing around "my" list at -e line 1.