Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

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

by Ratazong (Prior)
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??

Hi!

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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1023411]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2014-07-25 09:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (170 votes), past polls