Think about Loose Coupling | |
PerlMonks |
Re: $+ versus $^Nby Zaxo (Archbishop) |
on Apr 16, 2003 at 05:41 UTC ( [id://250792]=note: print w/replies, xml ) | Need Help?? |
The difference is that $^N contains the last closed capture while $+ contains the last opened one. That is, $^N looks to right parens and $+ to left ones. That makes a difference for nested captures. From the command line in 5.8.0:
After Compline,
In Section
Seekers of Perl Wisdom
|
|