Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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

by JavaFan (Canon)
on Mar 04, 2010 at 09:56 UTC ( #826671=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 JavaFan

Here's a reason: (hey, you said you couldn't think of a single reason...)
my $quote = q{'}; my $question = q{?}; my $star = q{*}; my $empty = q{};

  • Comment on Answer: To express a null string, why would anyone use ...=q{} intead of ...= '' ?
  • Download Code
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 imbibing at the Monastery: (10)
As of 2017-03-30 18:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (362 votes). Check out past polls.