As the docs for print explain:
Note that if you're storing FILEHANDLEs in an array, or + if you're using any other expression more complex than a s +calar variable to retrieve it, you will have to use a block r +eturning the filehandle value instead: print { $files[$i] } "stuff\n"; print { $OK ? STDOUT : STDERR } "stuff\n";
The cake is a lie.
The cake is a lie.
The cake is a lie.
In reply to Re: Odd Hashed Filehandle behavior
by Fletch
in thread Odd Hashed Filehandle behavior
by godfetish
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |