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 ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://38082]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2024-04-26 01:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found