Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


in reply to Size of @+

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://203089]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-04-24 06:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found