minixman has asked for the wisdom of the Perl Monks concerning the following question:
for( split(/[\r\n]+/, $content) ) { if(($_ =~ m/35=8/)&&($_ =~ m/$tag1/)&&($_ =~ m/$tag2/)){ printf $_; }elsif(($_ =~ m/35=9/)&&($_ =~ m/$tag1/)) { printf $_; } }
Message dump: 8=1034=DFG55=TEST90=23435=D 19 06/02/23 11:18:33:984 Sent Message
8=1034=DFG55=TEST90=23435=D
19 06/02/23 11:18:33:984 Sent Message
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Matching string, then getting next line
by inman (Curate) on Mar 08, 2006 at 10:39 UTC | |
by minixman (Beadle) on Mar 08, 2006 at 11:09 UTC | |
by inman (Curate) on Mar 08, 2006 at 11:35 UTC | |
by minixman (Beadle) on Mar 08, 2006 at 11:53 UTC | |
by wazoox (Prior) on Mar 08, 2006 at 13:05 UTC | |
| |
by cas2006 (Novice) on Mar 08, 2006 at 23:47 UTC | |
Re: Matching string, then getting next line
by lukeyboy1 (Beadle) on Mar 08, 2006 at 16:46 UTC | |
Re: Matching string, then getting next line
by graff (Chancellor) on Mar 09, 2006 at 03:19 UTC |