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"; }
In reply to Re: (Ovid) Re: need nextline() sub
by mutagen
in thread need nextline() sub
by mutagen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |