|
|
| Pathologically Eclectic Rubbish Lister | |
| PerlMonks |
Re: Naming file handles with variables?by citromatik (Curate) |
| on Apr 30, 2009 at 07:09 UTC ( #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
|
|
||||||||||||||||||||