Throw an if block or an and in there and you'll be set:my $foo = "bar"; $foo =~ /ar/; print "Got $&!\n"; $foo =~ /az/; print "Got $&!\n";
if ($foo =~ /ar/) { print "Got $&!\n"; } $foo =~ /az/ and print "Got $&!\n";
In reply to Re: UTF8 matches
by chromatic
in thread UTF8 matches
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |