Am I doing something wrong? I know I don't need the while loop, but I will eventually want to read all lines and process them.foreach my $file (@filenames) { open FILE, "<$file"; while($line = <FILE>) { print "$line\n"; last; } close FILE; }
In reply to reading multiple files one at a time by jumpstop
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |