Would it be possible to show some sample input? Otherwise, in my understanding you are looking for something like this:
use strict; use warnings; while(<DATA>) { last if /^<xxx;/; } while(<DATA>) { last if /^<xxx;/; print; } __DATA__ line1 line2 <xxx; line3 line4 <xxx; line5
In reply to Re: Read in the logfile
by hdb
in thread Read in the logfile
by lddzjwwy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |