Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re^3: hash reference doubt

by davorg (Chancellor)
on Jul 20, 2009 at 10:05 UTC ( #781583=note: print w/ replies, xml ) Need Help??

in reply to Re^2: hash reference doubt
in thread hash reference question

What is going on is that Perl is exposing more of its internals than it really should be. The name of the hash is being interpreted like a reference when you use this syntax.

%hash->{key} should never have worked, but some people noticed that it did and (wrongly) started to use it. And that's why it's just deprecated and hasn't been removed from the language yet.


See the Copyright notice on my home node.

Perl training courses

Comment on Re^3: hash reference doubt

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2015-11-29 18:13 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (752 votes), past polls