in reply to Read in the logfile
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Read in the logfile
by lddzjwwy (Novice) on May 27, 2013 at 08:28 UTC | |
by hdb (Monsignor) on May 27, 2013 at 08:35 UTC |