Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 scrutinizing the Monastery: (11)
As of 2014-10-22 08:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (114 votes), past polls