Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
Welcome to the Monastery
 
PerlMonks  

Re: To Single Quote or to Double Quote

by perrin (Chancellor)
on Feb 01, 2005 at 15:29 UTC ( [id://427038]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to To Single Quote or to Double Quote

This is a case of "say what you mean." If you mean "here is a literal string", use single quotes. If you mean "here is a string with some stuff I want you to interpolate", use double quotes. The performance difference is not enough to care about, but you should use the right one for clarity.

Replies are listed 'Best First'.
Re^2: To Single Quote or to Double Quote
by NateTut (Deacon) on Feb 01, 2005 at 15:40 UTC
    I agree. I just wonder about the performance hit on all those unnecessary "s

    Doug

      Since it is incurred at compile time, I'd venture to say that the "performance hit" wouldn't be anything to write home about.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://427038]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.