Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Size of @+by cluka (Sexton) |
on Oct 05, 2002 at 21:12 UTC ( [id://203089]=note: print w/replies, xml ) | Need Help?? |
This is one of the those cases where as a new perl programmer
I jump into perlvar to figure out what these variables are.
If I understand the documentation correctly, @+ would be calculated as follows: 1: Entire regex matched the'gh' in 'abcdefgh'. End of match is 8. (This corresponds to $&). 2: First backreference matches 'g'. End of match is at position 7. ($1) 3: 2nd backreference matches 'h'. End of match is at position 8. ($2) Am I on track? Thanks
In Section
Meditations
|
|