Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
(dkubb) Re: (2) Better way?by dkubb (Deacon) |
on Feb 16, 2001 at 11:50 UTC ( [id://58811]=note: print w/replies, xml ) | Need Help?? |
MeowChow, here's another version using a hash slice instead of a for loop to assign the contents of one hash to another:
In this case, the difference between using a for loop and a hash slice means a slight edge in speed during benchmarking. However, the larger the data set the wider the gap becomes.
In Section
Seekers of Perl Wisdom
|
|