in reply to Re: Re: Returning regexp pattern that was used to match
in thread Returning regexp pattern that was used to match
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" })/;
|
|---|