Use this:
print {$h->{FILE}} "Hello\n";
Perl only understands very simple expressions as filehandles, but you can wrap more complex expressions in braces. This is covered in the documentation for print.
In reply to Re: Unexpected results with expression for file handle in print
by tobyink
in thread Unexpected results with expression for file handle in print
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |