in reply to Search after match in dynamic lines
Please, use the <CODE> tags for the input files.
There's no line containing "^ Success" in your data. Do you mean qr/^ Success/?
Have you tried the flip-flop operator?
while (<>) { my $match = /^Success.*Id-/i ... /^Success/; print if $match && $match !~ /E/; }
Three dots are similar to two dots, but the second match isn't attempted for the first matching line. The last matching line of a block returns its number with E0 appended, so it numerically remains the same, but you can test it's the last line.
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Search after match in dynamic lines
by haukex (Archbishop) on Sep 01, 2018 at 06:58 UTC |