Jose Malacara wrote:

> foreach my $file (@files) {
>    my $input="$file";
>
> open(INFILE,"$input") || die "Can't open file $input";   #<=== is opening
> correct file name, but not 'data/logfile1.

I think your problem is here.  Presuming that data is a subdirectory of the directory 
your script is located in:

open(INFILE,"data/$input") || die "Can't open file $input";
or perhaps for clarity:
open(INFILE,"data/" . "$input") || die "Can't open file $input";

Joseph





-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to