I have a list of files that needs processing.
I created a sub routine that processes each file.
The 2nd time the sub is called, the line: my $fileIn = <$dirfile > returns an undef.
I then get a can't find file error.
Here is a snippet of sub code I'm using
$dirfile = "./final_erc/*.log" ;
$dirfile = "./final_drc/*.log" ;
sub process_file ;
my $fileIn = <$dirfile> ; # < returns undef on 2nd call
my $fileout = $dirfile . "_sum" ;
open (LOG , "<$fileIn") or die "$!\n" ;
} # sub