Quoth the docs for print:
Note that if you're storing FILEHANDLEs in an array, or if you're using any other expression more complex than a scalar variable to retrieve it, you will have to use a block returning the filehandle value instead:print { $files[$i] } "stuff\n"; print { $OK ? STDOUT : STDERR } "stuff\n";
Update: Duur, read not write. You want readline (readline( $hash{handle} )). Ignore that first part.
The cake is a lie.
The cake is a lie.
The cake is a lie.
In reply to Re: Using File Handle in hash
by Fletch
in thread Using File Handle in hash
by pileofrogs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |