|Just another Perl shrine|
Bug in Sort::Fields?by cmv (Chaplain)
|on Jul 20, 2010 at 17:08 UTC||Need Help??|
The reason I asked this question is because I'm seeing this problem when I use Sort::Fields. The script below will show what I mean:
You'll see in the output that the two fieldsorts() get sorted differently. I contacted the module owner about it, but in the mean time was trying to figure out how to fix it on my own.
If you look in make_fieldsort() sub in the Sort::Fields code, you'll see the nested map commands. I'm just getting comfortable with map, but this nested one is really throwing me for a loop (heh). I just can't seem to come up with the right solution here.
Any help for a poor, confused, I-only-seem-to-be-able-to-understand-non-nested-map-commands type person?