P is for Practical | |
PerlMonks |
Re: How to access a static hash.by Sidhekin (Priest) |
on Mar 17, 2007 at 18:04 UTC ( [id://605290]=note: print w/replies, xml ) | Need Help?? |
Rate hash ref hash 11956/s -- -73% ref 43773/s 266% -- You are misreading the results. That says using ref is faster by 266%, not slower. Update: ... or perhaps you have just forgotten how you named your two codes. "hash" and "ref"?! They are both using hashrefs! The one with the pre-created hashref is the faster one though. Just as common wisdom would have it.
print "Just another Perl ${\(trickster and hacker)},"
In Section
Seekers of Perl Wisdom
|
|