in reply to (Ovid) Re: need nextline() sub
in thread need nextline() sub
calling program:package FileClerk; open (FH,$file); sub next_line { return (readline(*FH)); }
The calling program doesn't need to care about the filehandle, which was my aim. Thanks everyone.use FileClerk; for (FileClerk::next_line()) { print "$_\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re3: need nextline() sub
by Hofmator (Curate) on Nov 22, 2001 at 23:59 UTC |