in reply to Re^2: 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.
Because <> can do two different things, readline and glob (and in your case is doing the wrong one), you should explicitly say while(readline($opts{-handle})).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Passing a file handle to a sub. I still don't get it.
by mifflin (Curate) on Jun 09, 2005 at 20:17 UTC | |
by ysth (Canon) on Jun 09, 2005 at 20:20 UTC | |
by mifflin (Curate) on Jun 09, 2005 at 20:38 UTC | |
by ysth (Canon) on Jun 10, 2005 at 00:54 UTC | |
by Anonymous Monk on Jun 10, 2005 at 20:57 UTC | |
|