in reply to Using an array of file handles
Easy workaround:
for my $handle (@in_fh) { while (<$handle> ) { print ; } }
You also have an "off-by-one" error: $i <= $count which you would have spotted by using strict and warnings.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using an array of file handles
by Laurent_R (Canon) on Apr 22, 2016 at 12:34 UTC |