is incorrect - it is taking the second "<" as a part of the file name.open(GRADES,"<<$grades") ...
Follow graff's advice above., or (better), consider using local file handles in addition to the 3-arg open, and avoiding single-use throwaway variables:
I might have gone further to suggest what I usually do - save the file handle as a part of the object, like:open (my $grades, "<", $self->{gradefile}) or die ....
but this makes it tricky to read/write the file - you need extra braces.open ( $self->{gradefh}, "<", $self->{gradefile})
"You're only given one little spark of madness. You mustn't lose it." - Robin Williams
In reply to Re: perl CGI: No such file or directory yet file exists???
by NetWallah
in thread perl CGI: No such file or directory yet file exists???
by jasondancks
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |