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

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:


I also quote hash keys, for consistency.


Comment on Re: Coding superstitions
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (9)
As of 2015-12-01 08:22 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 (796 votes), past polls