All a bit late now, but another way to do it could be to buffer the reading in of the file ( a la Re: Grabbing lines three-by-three from a file ). This way you could read lines in pairs, testing the first and printing the second. Not that the solutions above need improving, but TIMTOWTDI and all that...
In reply to Re: how to next line after the pattern in perl
by BioLion
in thread how to next line after the pattern in perl
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |