I am attempting to open a file using the following command:
 
open(FH,"<",$file)
  or die "The file $file could not be found";
 
I get the file path using the following command:
 
chomp($file=<STDIN>);
 
When I execute the program after entering the file name from the keyboard I get an error message that indicates that the file can not be found. The file I am trying to use exists currently in the directory where the program file exists. I have tried to enter just the file name and the whole path including the file name. I get he same error either way.
 
Help! I have to have this assignment in tomorrow! Any suggestions will be GREATLY appreciated!


Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1ยข/min.
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to