Help for this page

Select Code to Download


  1. or download this
    if (!-e $file) {
       die "'$file' does not exists';
    ...
       die "`$file' is a directory, not a plain file";
    }
    # and so on
    
  2. or download this
    open my $handle, '<', $file or die "Can't open `$fil'e for reading: $!"