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

Re^2: Pseudo-hashes & Hashes

by demerphq (Chancellor)
on Mar 17, 2008 at 10:20 UTC ( #674543=note: print w/ replies, xml ) Need Help??


in reply to Re: Pseudo-hashes & Hashes
in thread Pseudo-hashes & Hashes

Only the first -> is necessary. I would write it as

$server->{cmds}[$i]{status}

But i concur with your point, in general its easier to understand the -> style, as it reduces the possible meanings of $$ in your code (it has multiple meanings which depend on what follows, sometimes quite far after). In fact some people even avoid using bare scalar dereferencing on simple scalars just to avoid having $$ in their code. So they write ${$scalar_ref} instead of $$scalar_ref. (Im not in this camp personally).

---
$world=~s/war/peace/g


Comment on Re^2: Pseudo-hashes & Hashes
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2014-08-23 12:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (173 votes), past polls