|
|
| Just another Perl shrine | |
| PerlMonks |
Re^3: To Single Quote or to Double Quote: a benchmarkby eric256 (Parson) |
| on Feb 02, 2005 at 12:08 UTC ( [id://427334]=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.
A quick change to your benchmark measures more accurately what we are talking about. Assume the evals and string qoutes are right because you lost me in there somewhere.
You see a consistent win for single quotes, I don't think it is enough to worry about though. If you are dealing with 100k strings and you want to decide if you should sinle or double quote them, then you probably made a bad choice to load 100k variables ;) Update: Added benchmarks for strings with no $ in them. Looks like perl must do a prescan to see if it needs work or not. I could of course be completely crazy. ___________ Eric Hodges
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||