Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^4: uninitialized string variable

by JediWizard (Deacon)
on Aug 14, 2010 at 02:38 UTC ( #855039=note: print w/replies, xml ) Need Help??


in reply to Re^3: uninitialized string variable
in thread uninitialized string variable

This is only an opinion, but:

I would rather keep to a single syntax for de-referencing when possible. As with most things in perl, there is more than one way to do it, and different ways have different strengths. In some cases using the @$arrayref; %$hashref; $$scalarref may be better, and in others $arrayref->[0]; $hashref->{key}; may be better. That having been said... @$data[$i]->{key} uses two different syntax's for de-referecing, in the same statement. I'd say that $data->[$i]{key} is much clearer.


They say that time changes things, but you actually have to change them yourself.

—Andy Warhol

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2021-06-23 18:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)












    Results (121 votes). Check out past polls.

    Notices?