Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
INPUT:- Warning: Found baddata Block list file: 231092
OUTPUT:- I need to capture the word between "found" and "block"
I tried the following (just snippet) but not working.Can someone help?#get blocking type if ( $match =~ /Warning: Found/ ) { $block_type = (split /:\s*/, $match)[1]; chomp $block_type; next LINE;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regular expression help
by toolic (Bishop) on Oct 28, 2011 at 00:31 UTC | |
|
Re: Regular expressionhelp
by mrstlee (Beadle) on Oct 28, 2011 at 12:06 UTC |