Help for this page

Select Code to Download


  1. or download this
    my $FH = "DATA"; open $FH, "<", $filename or croak "Cannot open file $
    +filename $!\n";
    
  2. or download this
    open my $FILE, '<', $filename
        or croak "Can't open '$filename': $OS_ERROR";
    
  3. or download this
        my $FH;
        open $FH, "<", $filename     
            or croak "Cannot open file $filename $!\n";