in reply to reading more than one file in a CGI Script.

I am guessing that you did not open the file. Filepat usually stands for file Path, not the file handle.

So may I suggest

open( LOG, $filepath ); while ( <LOG> ) { print } close( LOG );


another problem might be, if $filePath is a filehandle (which it should be in the first place ), you might be trying to open the same file twice. I have known instances where that fails. so, try closing the file handle after the first one. try this:

while(<$filepath>) { print " $_"; } close ( $filepath ); while (<$filepath2>) { print "$_"; } close ( $filepath2 );


see if that helps.

- Have Fun, XDB19