Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

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??

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 contemplating the Monastery: (3)
As of 2016-08-30 07:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (411 votes). Check out past polls.