in reply to Passing a file handle to a sub. I still don't get it.

Try using readline instead of the shorthand <>.

Caution: Contents may have been coded under pressure.
  • Comment on Re: Passing a file handle to a sub. I still don't get it.