|
|
| XP is just a number | |
| PerlMonks |
Re^2: Unusual sorting requirements; comparing three implementations.by afoken (Parson) |
| on Oct 24, 2012 at 11:19 UTC ( #1000608=note: print w/ replies, xml ) | Need Help?? |
|
Faster, but not correct for the original problem. tobyink's Test::More script tested for ->title =~ /Manager/, not for ->title eq 'Manager', and so all those non-generic Manager employees, like the Sales Manager, the Finance Manager, and the Marketing Manager will be sorted as NON-Manager employees. tobyink's benchmark script wrongly reduces the possible titles to "Staff" and "Manager". Alexander
-- Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
In Section
Meditations
|
|