in reply to UTF8 matches
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";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: UTF8 matches
by Anonymous Monk on Aug 23, 2001 at 01:48 UTC |