Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

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

by Anonymous Monk
on Feb 04, 2005 at 08:13 UTC ( [id://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?

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2024-07-18 22:46 GMT
Find Nodes?
    Voting Booth?

    No recent polls found

    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.