The stupid question is the question not asked | |
PerlMonks |
Re: Naming file handles with variables?by citromatik (Curate) |
on Apr 30, 2009 at 07:09 UTC ( [id://761051]=note: print w/replies, xml ) | Need Help?? |
Another (and less efficient) way, using Tie::File:
Beware of possible overheads if the files are very big. (0..$#{$fhandlers[0]}) traverses the whole first file just for know how many lines it has. Update: Added note about efficiency citromatik
In Section
Seekers of Perl Wisdom
|
|