On Tue, 18 Mar 2014 13:15:11 +0100, demerphq <demerphq@gmail.com> wrote: > > The difference in parsing time between single and double quotes strings is > > infinitesimal > > IMO there is no point in worrying about these kind of things unless > the string is very long. And not even then. I benched it years ago on several machines, and all bench results are in line-noise margins and differ per architecture. IIRC all big-endian boxes I tried on had a <1% preference for double quotes whereas little-endian boxes prefered single quotes. Let's just be consistent! More interesting would be to check if "foo: ".$foo.", bar: ".$bar is equally fast as "foo: $foo, bar: $bar". Last time I checked, the interpolated version was faster -- H.Merijn Brand http://tux.nl Perl Monger http://amsterdam.pm.org/ using perl5.00307 .. 5.19 porting perl5 on HP-UX, AIX, and openSUSE http://mirrors.develooper.com/hpux/ http://www.test-smoke.org/ http://qa.perl.org http://www.goldmark.org/jeff/stupid-disclaimers/Thread Previous | Thread Next