Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 studying the Monastery: (4)
As of 2015-07-05 04:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls