you might want to avoid the complexity here and just say:
open(GRADES, "grades.txt");

your problem are the \ marks... you'll need to use \\ in your example,
seeing that \ is the escape character
iirc, you can use / in perl paths too, even on a windows machine, but i'm
not 100% on that one.

try it and tell us if it works

Jos Boumans

> open(GRADES, "c:\perl\eg\grades.txt") or die "Can't open grades: $!\n";

> ##### my text file is as follows, and is called "grades.txt" in same path
as
> gradation.pl

Reply via email to