|
|
| Perl Monk, Perl Meditation | |
| PerlMonks |
Re: read from two files at once?by samtregar (Abbot) |
| on May 07, 2009 at 15:29 UTC ( #762639=note: print w/ replies, xml ) | Need Help?? |
|
The problem with: my ($in) = <CURR>; Is that it puts <CURR> in list context. That causes it read all the lines in your file and then put the first one in $in! Instead you want: my $in = <CURR>; Which will read just one line. Reading from two files should work with something like:
-sam
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||