peek next line in file
- From: mahurshi@xxxxxxxxx (Mahurshi Akilla)
- Date: Wed, 26 Sep 2007 23:29:01 -0000
Is there a way in perl to peek the next line in the file while keeping
the line pointer the same?
I want to do something like this:
while (<INFILE>)
{
//do some stuff
//?? peek next line ?? and enter conditional block//
//do some more stuff
}
Of course, there are workarounds, but it would be nice to know if this
can be done.
Mahurshi Akilla
.
- Follow-Ups:
- Re: peek next line in file
- From: Xavier Noria
- Re: peek next line in file
- Prev by Date: Re: How to set a COM Object property to TRUE
- Next by Date: Invalid top directory at d:\perl\lib\file\find.pm line 562
- Previous by thread: large Files management
- Next by thread: Re: peek next line in file
- Index(es):
Relevant Pages
|