in reply to Re^3: File read errors
in thread File read errors

that is not an error!, sometimes you would write a script that would be saved - by default - to the current directory and would work on the current directory, without having to specify a path!, check cwd to know the current working directory the script is saved in...Your error was that you did not tell your program what to do in case it could not open a file handle... beat yourself over that one!!!
Open(FH, "something.txt") or die ("could not open it $!\n");
and also through IO::Handle
use strict; use warnings; use IO::Handle; my $fh = IO::Handle->new; $fh->open('something.txt') or die("could not open file $!\n");

Watch your language out of courtesy!!!!