IIRC, the expression inside the angle brackets has to be either a package filehandle (e.g. <FH>) or a simple scalar as you have used in your working code. To use a filehandle held in a data structure you can use readline, I think, so this should work.
... while ( my $line = readline $result->{fh} ) { ...
I hope I've got that right and this useful to you.
Cheers,
JohnGG
In reply to Re: <> and $hash_ref->{key} construct
by johngg
in thread <> and $hash_ref->{key} construct
by Gangabass
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |