Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I am trying get the following out put using the below input but nothing gets printed
INPUT:Info: Product Line is MMS 3.3
OUTPUT: MMS 3.3
foreach my $match (@verifysrclog) { if ( $match =~ /Info: Product Line is (\w+)/ ) { $product_line = $1; print "$product_line\n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regex help for printing alphanumeric
by toolic (Bishop) on Oct 28, 2011 at 02:13 UTC | |
|
Re: Regex help for printing alphanumeric
by sumeetgrover (Monk) on Oct 28, 2011 at 10:40 UTC | |
by Anonymous Monk on Oct 28, 2011 at 17:25 UTC |