Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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 exploiting the Monastery: (6)
As of 2016-12-08 17:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (144 votes). Check out past polls.