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

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

by merlyn (Sage)
on Apr 24, 2001 at 00:56 UTC ( [id://74874]=note: print w/replies, xml ) Need Help??


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

OK, so here's how I'd write that: {grin}
my @AoA; while (<DATA>) { my @row = split; push @{$AoA[$_]}, $row[$_] for 0..$#row; }

-- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Re: Short (and clever?) CSV-to-AoA
by scott (Chaplain) on Apr 24, 2001 at 17:29 UTC

    :) OK, that's obviously a much more standard way to do it than mine... and 20% faster on the one platform I can test it on.

    Thanks.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-12-08 14:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which IDE have you been most impressed by?













    Results (51 votes). Check out past polls.