Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Coding superstitions

by FoxtrotUniform (Prior)
on Jan 08, 2002 at 00:39 UTC ( #136934=note: print w/replies, xml ) Need Help??


in reply to Coding superstitions

I always make explicit dereferences, even with AoAs and suchlike:

my $bar = $foo->[0]->[1]->{'two'};

(Although, since I think this actually improves my code's readability, I guess it isn't really a superstition.)

I also use both & and parens when calling functions, even as I am certain in the knowledge that it will bite me in the arse sometime in the misty future:

&do_stuff();

I also quote hash keys, for consistency.

--
:wq

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://136934]
help
Chatterbox?
[choroba]: where "ohne" means "will bend" in Czech
[LanX]: one-day-the- triangle-player-of -an-orchestra-gets -very-sick xD
[choroba]: :)
[LanX]: cho: your joke has very limited impact on a non German+Czech speaking board ... we need to create one and invite Lichtkind and "Peta...Monk"

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2017-03-27 12:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (319 votes). Check out past polls.