Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Coding superstitions

by Juerd (Abbot)
on Jan 08, 2002 at 00:30 UTC ( [id://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:~$

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2024-04-26 04:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found