Why do you need regex to read lines? my $data_file = m/(\w+)/; doesn't make sense to me
Here's how you write it :
open(INP, "<$file_list") or die("Error reading file"); while (my $data_file = <INP>) { chomp($data_file); # then call a subroutine which opens the $data_file # and performs some analysis on it }
In reply to Re: Multiple files opened
by ahmad
in thread Multiple files opened
by kokakola613
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |