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

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

( #826438=categorized answer: print w/ replies, xml ) Need Help??

Q&A > strings > To express a null string, why would anyone use ...=q{} intead of ...= '' ? contributed by toolic

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 Answer: To express a null string, why would anyone use ...=q{} intead of ...= '' ?
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2014-08-20 09:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (108 votes), past polls