Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Coding superstitions

by Juerd (Abbot)
on Jan 08, 2002 at 00:30 UTC ( #136932=note: print w/ replies, xml ) Need Help??


in reply to Coding superstitions

I think it's much clearer _without_ the quotes. Any valid bareword will be interpreted as a string, so why not use that? Same goes for => - I don't use quotes if it being a string is obvious.

Always using quotes might make you forget about words being interpreted as strings, and you might end up using $foo{function} where you meant to use $foo{+function} / $foo{function()}.

But as _always_, style is what YOU choose. (Just remember some common style issues so others will be able to read your code :)

2;0 juerd@ouranos:~$ perl -e'undef christmas' Segmentation fault 2;139 juerd@ouranos:~$


Comment on Re: Coding superstitions
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (13)
As of 2014-07-24 11:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (160 votes), past polls