mbm has asked for the wisdom of the Perl Monks concerning the following question:
Dear monks, Let me be clear with my question this time. I am new to perl and still + managed to code many things in it. That shows how simple yet effecti +ve language perl is! I have a csv file with following contents. "Add workflow, Delete workflow",resource1,Sat 04/25/09,manager1 "Updateworkflow, Delete workflow",resource2,Wed 04/15/09,manager2 "Retrieve workflow, Delete workflow",resource3,Sat 04/25/09,manager3 "Add workflow, Delete workflow",resource4,Wed 03/25/09,manager4 "Add workflow",resource5,Tue 04/14/09,manager5 I need this csv file to be sorted and the sorted file should be like t +his: "Add workflow, Delete workflow",resource4,Wed 03/25/09,manager4 "Add workflow",resource5,Tue 04/14/09,manager5 "Updateworkflow, Delete workflow",resource2,Wed 04/15/09,manager2 "Add workflow, Delete workflow",resource1,Sat 04/25/09,manager1 "Retrieve workflow, Delete workflow",resource3,Sat 04/25/09,manager3 Can anyone help me accomplish this without using any modules? If it ca +n't be done without using any modules, then pls let me know which mod +ule to use and how do we install it? I have perl 5.6.0 in my HP box. ~Manjunath Alcatel-Lucent
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: sort csv file on "date" column
by Corion (Patriarch) on Apr 25, 2009 at 07:33 UTC | |
|
Re: sort csv file on "date" column
by jwkrahn (Abbot) on Apr 25, 2009 at 07:47 UTC | |
by mbm (Novice) on Apr 25, 2009 at 16:51 UTC | |
by jwkrahn (Abbot) on Apr 25, 2009 at 20:43 UTC | |
by mbm (Novice) on Apr 26, 2009 at 18:19 UTC | |
by jwkrahn (Abbot) on Apr 26, 2009 at 23:30 UTC |