Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: To express a null string, why would anyone use ...=q{} intead of ...= '' ?

by toolic (Bishop)
on Mar 03, 2010 at 16:02 UTC ( [id://826438]=note: print w/replies, xml ) Need Help??


in reply to To express a null string, why would anyone use ...=q{} intead of ...= '' ?

Damian Conway, in his book Perl Best Practices, considers it a better practice to use q{} (the single-quote operator with matching braces) instead of two single quotes because two single quotes is easily confused with a double quote for some font settings.
  • Comment on Re: To express a null string, why would anyone use ...=q{} intead of ...= '' ?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2024-04-19 08:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found