... I don't think @- and @+ are guaranteed to contain anything meaningful during a matchBut it would be useful if they do so. They will give you the opportunity to access the attributes of previous sections inside embedded code (see ikegami answer in node Backreference variables in code embedded inside Perl 5.10 regexps) and mimic Parse::Recdescent programming style.
In reply to Re^2: Strange behavior of @- and @+ in perl5.10 regexps
by casiano
in thread Strange behavior of @- and @+ in perl5.10 regexps
by casiano
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |