in reply to <> and $hash_ref->{key} construct
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
|
|---|