Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: i need to join two fields in .csv file??

by Ratazong (Monsignor)
on Mar 14, 2013 at 07:49 UTC ( #1023411=note: print w/replies, xml ) Need Help??

in reply to i need to join two fields in .csv file??


How would you do it manually? You would probably

  • read the file (into a list in "memory")
  • sort that list by lenght of the entries and alphabetically
  • write down the sorted list
So you have just to do that in perl. You might think of arrays, open, sort and print.

HTH, Rata

  • Comment on Re: i need to join two fields in .csv file??

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1023411]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2016-12-11 13:37 GMT
Find Nodes?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:

    Results (169 votes). Check out past polls.