Perl scripting. Specifying file path in a Open statement. ?

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";

Comments

  1. Dr. Frank C. M.D. says:

    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.

legitimate work from home jobs | Event Planning Bay Area | rent video games | Homeloans | Plumbing Courses in Manchester | increase fertility | Green Drink | Photo Keyring | Vitamin D Deficiency Symptoms | skip bags | Order Fulfillment Software | virtual receptionist | Educators Credit | bodybuilding workouts | window cleaning