Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

(tye)Re: Short (and clever?) CSV-to-AoA

by tye (Cardinal)
on Apr 24, 2001 at 01:04 UTC ( #74880=note: print w/ replies, xml ) Need Help??


in reply to Short (and clever?) CSV-to-AoA

Just to show another way (which I wouldn't actually suggest using due to the memory requirements, though it doesn't really use much more memory than some of other solutions suggested that turned out to be solutions for the wrong problem):

use mapcar; my @AoA= mapcar{[@_]}map{[split]}<DATA>;
(requires mapcar -- map for more than one list)

        - tye (but my friends call me "Tye")


Comment on (tye)Re: Short (and clever?) CSV-to-AoA
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (10)
As of 2015-07-29 07:53 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 (261 votes), past polls