Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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

by toolic (Bishop)
on Mar 03, 2010 at 16:02 UTC ( #826438=categorized answer: print w/replies, xml ) Need Help??

Q&A > strings > To express a null string, why would anyone use ...=q{} intead of ...= '' ? - Answer 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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2017-01-17 04:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (152 votes). Check out past polls.