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

Re: Arrays and hashes only with references

by wade (Pilgrim)
on Mar 14, 2008 at 17:16 UTC ( #674252=note: print w/replies, xml ) Need Help??


in reply to Arrays and hashes only with references

I code similarly to this but instead of:
$value = $$arrayref[2];
I prefer:
$value = $arrayref->[2];
The beauty of that notation is that it doesn't treat the outer level of a nest any differently.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://674252]
help
Chatterbox?
[atcroft]: stevieb: I have a quick question for you, actually, if you are still around.

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2017-04-29 05:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (531 votes). Check out past polls.