On Thu, May 29, 2008 at 6:45 PM, Mimi Cafe <[EMAIL PROTECTED]> wrote: > my script is in the same directory as my files, but it cannot find the file > ABC.txt in open() below. > > foreach my $supplied (@ARGV){ > # Output file name set of element currently processed. > > # Open file to read from. > open (INPUTFILE, "<", "$supplied") or die "Could not open $supplied: $!\n"; > # Error: No such file or directory. > }
How do you pass the files to the script? Using opendir to do it is better I may suggest. -- Jeff Peng - [EMAIL PROTECTED] Professional Squid supports in China http://www.ChinaSquid.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/