|
|
| more useful options | |
| PerlMonks |
Re^2: how do I efficiently remove one hash from another?by tobyink (Prior) |
| on Nov 27, 2012 at 10:26 UTC ( #1005829=note: print w/ replies, xml ) | Need Help?? |
|
The former compiles to a much smaller op tree than the latter:
On my machine, the slice performs about 20% faster than the loop.
perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||