Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Overuse of double quotes?

by autark (Friar)
on Oct 24, 2000 at 10:15 UTC ( #38082=note: print w/replies, xml ) Need Help??


in reply to Overuse of double quotes?

That should be easy to check:
perl -MO=Deparse -le '$a = "foo"' -e syntax OK $a = 'foo';
That was converted to singel quotes. What if we stick in something that can be interpolated ?
perl -MO=Deparse -le '$a = "foo $$"' -e syntax OK $a = "foo $$";
Wee, doublequotes. So indeed, it seems perl does its share of compiletime optimizations.

-- Autark.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://38082]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2020-11-24 21:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?