Perl-Sensitive Sunglasses | |
PerlMonks |
Re: 5.10 named capture in DEFINE regexby brian_d_foy (Abbot) |
on Dec 27, 2007 at 17:58 UTC ( [id://659225]=note: print w/replies, xml ) | Need Help?? |
The results of captures inside the recursion aren't available outside the recursion. See the last paragraph for the DEFINE in perlre. %- will have keys for the names of the bits in DEFINE, but their values will always be undef. You need to capture the parts you want and name them yourself (similar to the example in perlre):
In Section
Seekers of Perl Wisdom
|
|