We don't bite newbies here... much | |
PerlMonks |
Re: globbing filehandles in arraysby almut (Canon) |
on Jan 23, 2009 at 13:44 UTC ( [id://738483]=note: print w/replies, xml ) | Need Help?? |
while(my $line=<$FH[$i]>){ <$FH[$i]> doesn't work for syntactic reasons, i.e. special parsing rules apply for <...>, and only simple expressions like <$fh> can be handled. Use readline $FH[$i] instead, if you don't want to use an intermediate variable. Update: also note that whitespace isn't allowed either, i.e. < $fh > and <$ fh> won't work... it has to be exactly <$fh>.
In Section
Seekers of Perl Wisdom
|
|