Should print out 'Found a Bar'.my $string = "Bar"; $sting =~ /Foo(?{ print "Found a Foo\n" })|Bar(?{ print "Found a Bar\n +" })|Baz(?{ print "Found a Baz\n" })/;
In reply to Re: Re: Re: Returning regexp pattern that was used to match
by Ven'Tatsu
in thread Returning regexp pattern that was used to match
by crabbdean
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |