mutagen has asked for the wisdom of the Perl Monks concerning the following question:
is not appropriate. I need to abstract the filehandle away in module, so that code using this module can just call a sub called nextline() that returns a line and advances the file pointer to the next \n. I looked at seek(), and I can understand how it's used to move the file pointer, but I don't get how I can return a line's worth of characters each time. thanks!for (FILEHANDLE) { # do stuff }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: need nextline() sub
by Zaxo (Archbishop) on Nov 22, 2001 at 05:36 UTC | |
by mutagen (Novice) on Nov 22, 2001 at 05:41 UTC | |
|
(Ovid) Re: need nextline() sub
by Ovid (Cardinal) on Nov 22, 2001 at 05:42 UTC | |
by mutagen (Novice) on Nov 22, 2001 at 06:04 UTC | |
by Hofmator (Curate) on Nov 22, 2001 at 23:59 UTC | |
|
Re: need nextline() sub
by Kanji (Parson) on Nov 22, 2001 at 05:36 UTC | |
|
Re: need nextline() sub
by kwoff (Friar) on Nov 22, 2001 at 05:30 UTC | |
|
Re: need nextline() sub
by broquaint (Abbot) on Nov 30, 2001 at 17:31 UTC |