Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    ...
    $file =~ s/ *["']?([^"']*)["']? *$/$1/;        # strip whitespace and 
    +quotes
    if (-e "$file") {print "\nFile found, everything is fine.\nFile:>$file
    +<"} else {print "\nOoops, file not found.\nFile: >$file<"}
    <STDIN>;
    
  2. or download this
    Enter file path> í.txt
    $qfn="\241.txt"
    open í.txt: No such file or directory