Help for this page

Select Code to Download


  1. or download this
    my $file = 'file-name';
    
    ...
    {
      print "No such file or directory\n";
    }
    
  2. or download this
    if ( open my $handle, '<', $file )
    {
    ...
      print $!, "\n";
      #warn "Cannot open file '$file' to read: $!";
    }