Re: No such file or directory

[email protected] ("Jeff Peng")
Newsgroups perl.beginners
Message-ID <[email protected]>
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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.