in reply to Re^4: Passing a file handle to a sub. I still don't get it.
in thread Passing a file handle to a sub. I still don't get it.

What happens if you replace the while line in from_handle with

while ( defined( $_ = $opts{-handle}->getline ) ) {
?

the lowliest monk