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