I have a function that returns a file handle. I am confused about how to read when an 'open' is not used. I understand reading this way:
In my case I have a function that returns a filehandle:
Obviously the above is wrong but I can't seem to find how to read it in the docs. Can someone help? TIA.
Code:
open (FILEHANDLE,"myfile.txt");
my $line=<FILEHANDLE>;
Code:
$pop->get($msgnum,my $fh);
my $line=<$fh>;