Perl Monk, Perl Meditation | |
PerlMonks |
sorta sorting funby softworkz (Monk) |
on Feb 07, 2008 at 20:16 UTC ( [id://666850]=perlquestion: print w/replies, xml ) | Need Help?? |
softworkz has asked for the wisdom of the Perl Monks concerning the following question:
Fellow Monks. While having a typical day fumbling around in MS access sorting some records. A co-worker comes in and asks whadia sorting by yada yada later on he says... Your lucking "they" didn't ask for you to sort by Middle initial, 2nd letter of their first name and last letter of last name. Knowing it can be done with Perl I'd like to slap this list on his desk and say here, there you go! lol Any ideas would be helpful looking at sort, reverse and cmp but stuck on part 2nd letter of first name.. Here's an example, thanks! INPUT FNAME LNAME MNAME SURNAME john,doe,sam,jr albert,simpson barry,white,,III harry,potter steve,zurk,james,sr OUTPUT barry,white,,III harry,potter albert,simpson steve,zurk,james,sr john,doe,sam,jr
Back to
Seekers of Perl Wisdom
|
|