Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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

( #826671=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 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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (8)
As of 2014-12-22 01:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (110 votes), past polls