- or download this
my %prices = $str =~ m/((?:$animal)s?)\s(?:is|are)\s(\$\d+)/g;
- or download this
use strict;
...
if($something =~ m/((?:bing|bong|bang))/i) {
print "Found '$1' in '$something'\n";
}
- or download this
Found 'bang' in 'This is a bang of a bing thing'
- or download this
...
my @list = qw / bing bong bang /;
if($something =~ m/(?:@list)/i)
...
- or download this
___
/\__\ "What is the world coming to?"
\/__/ www.wolispace.com