|
|
| The stupid question is the question not asked | |
| PerlMonks |
Re: store file handles in a hashby Athanasius (Vicar) |
| on Oct 30, 2012 at 14:14 UTC ( #1001510=note: print w/ replies, xml ) | Need Help?? |
|
From print: If you're storing handles in an array or hash, or in general whenever you're using any expression more complex than a bareword handle or a plain, unsubscripted scalar variable to retrieve it, you will have to use a block returning the filehandle value instead... So, just change the last line in the while loop to:
Hope that helps, Athanasius <°(((>< contra mundum
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||