open (FILE1, "file1.txt") or die "Can't read file1: $!"; open (FILE2, "file2.txt") or die "Can't read file2: $!"; #.... do whatever you need to each file, accessing them by the # appropriate filehandle.
Gary Blackburn
Trained Killer
In reply to Re: Using more than one filehandle
by Trimbach
in thread Using more than one filehandle
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |