There's more than one way to do things | |
PerlMonks |
Re^2: Merge hash keysby dcmertens (Scribe) |
on Jan 16, 2014 at 01:51 UTC ( [id://1070746]=note: print w/replies, xml ) | Need Help?? |
Wait... what? hdb's answer was exactly what you needed? Don't get me wrong, it's clever and there's a good chance it's fast, but anybody reading your code will have no idea what the hell is going on. I have to agree with some of the other posters that some kind of sort with substring is the right way to go here. Even if it's slower, at least it properly conveys your intent.
In Section
Seekers of Perl Wisdom
|
|