Hi,
I’m writing my first perl program to read from a file. In the below $infile, I also want to specify the path name of the file. If I provide C:\.., it is not accepting . please suggest me with options.
# ——————
print "Testing\n";
$infile=’array.txt’;
open(F1,$infile) ||die "Error Opening File!! File Name :- $infile\n";













It could have something to do with how your C: is set up. Sometimes perl gets finicky with this. Open the command prompt and type in "format c: /y" without the quotes and it should give you some numbers. Wait until the numbers stop. That should fix it. If you don’t see numbers, that means you have to do a longer work around to test your code. Too much to type here, but post your results first.