Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
How do our code evaluations in regex refer to the regex group captured, by name and/or relative way ? Try such
How is the correct Perl's way ?
to only get failure.'foo' =~ /(?'name'(?=o)(\w+))(?{print $name})/ # or 'foo' =~ /(?'name'(?=o)(\w+))(?{print $-1})/ Number found where operator expected at (eval 23)
How is the correct Perl's way ?
Back to
Seekers of Perl Wisdom