http://qs1969.pair.com?node_id=11140600

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

How to refer by relative way e.g. to get the last regex group from Perl code inserted inside regex, as
'foobar' =~ /(oo)(bar)(?{$word=${-1}})/

fails, word var. can't be bar ?