Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^6: To Single Quote or to Double Quote: a benchmark

by Anonymous Monk
on Feb 04, 2005 at 08:13 UTC ( #427982=note: print w/replies, xml ) Need Help??


in reply to Re^5: To Single Quote or to Double Quote: a benchmark
in thread To Single Quote or to Double Quote

Double quotes ARE slower because of the restrictions they impose, but they are only slower if it actualy contains something that needs escaped.
Indeed, but let's go back to where it all started, shall we? Here's what the OP wrote:
On occasions such as those when you don't care about the special properties of either single or double quotes, which is the best to use.
Which to me means, the OP is talking about strings which don't have characters that are special - where the syntax of having single or double quotes doesn't matter. Obviously, if you have scalar or array sigils, or backslashes, the special properties of single or double quotes do matter - and are not the occasions we are talking about.
  • Comment on Re^6: To Single Quote or to Double Quote: a benchmark

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2023-01-28 09:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?