in reply to Error while trying to open a file
Check the file is exists or not.
$file='File Path'; print "\nFile $file ", (-e $file && -f $file ) ? "exists" : "doesn't e +xists";
Get the OS error by using of $!
open (FILEHANDELER,"FILEPATH") || die "Cannot open the input file : $! +";
And check the file permission
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Error while trying to open a file
by ritchie (Initiate) on Jan 05, 2011 at 15:41 UTC | |
by Corion (Patriarch) on Jan 05, 2011 at 15:47 UTC |