Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Learning to *really* love references

by ash (Monk)
on Jul 31, 2002 at 14:42 UTC ( #186503=note: print w/ replies, xml ) Need Help??


in reply to Learning to *really* love references

I prefer:
 
For scalars:
$$scalar
 
For hashes:
$hashref->{$key}
 
For arrays:
$arrayref->[$index]

IMHO i.e
$hashref->{key}{next}{next}{$_}
is much better to reaad than:
${$hashref}{key}{next}{next}{$_}

-- Ash/asksh <ask@unixmonks.net>


Comment on Re: Learning to *really* love references
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (16)
As of 2014-07-11 19:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (235 votes), past polls