Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^4: accessing the result of a match as an array

by AnomalousMonk (Bishop)
on Dec 24, 2009 at 23:21 UTC ( #814307=note: print w/replies, xml ) Need Help??


in reply to Re^3: accessing the result of a match as an array
in thread accessing the result of a match as an array

What's the advantage of your latter snippet ...

None. In the context of the OP, it's essentially a Stupid Regex Trick. But then, in the same context
    pop @{[ whatever ]}
is essentially a stupid array dereference trick.

Update: ikegami nailed the reason why.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2021-05-14 00:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (145 votes). Check out past polls.

    Notices?