P is for Practical | |
PerlMonks |
Re: Opening multiple filehandlersby btrott (Parson) |
on Apr 06, 2001 at 11:28 UTC ( [id://70421]=note: print w/replies, xml ) | Need Help?? |
How about using Symbol:
Now all of your filehandles are in @FH, and you can loop through there and do what you will with them. Will this work for you? Note that in Perl 5.6.0 you can just do: And it Just Works. You could then take out the 'use Symbol' and 'gensym' bits.
In Section
Seekers of Perl Wisdom
|
|