Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Columns in double dimension array

by Skeeve (Vicar)
on Jul 17, 2013 at 08:46 UTC ( #1044765=note: print w/ replies, xml ) Need Help??


in reply to Columns in double dimension array

I think, I don't understand the problem completely.

 $csv->getline($io) already returns a ref to an array where, each entry "n" is the cell of column "n+1".

So this should already give you the correct array:

while (my $row = $csv->getline($io)) { push @DD, $row; }

$DD[$r][$c] should give you the entry in row "r+1" and column "c+1".


s$$([},&%#}/&/]+}%&{})*;#$&&s&&$^X.($'^"%]=\&(|?*{%
+.+=%;.#_}\&"^"-+%*).}%:##%}={~=~:.")&e&&s""`$''`"e


Comment on Re: Columns in double dimension array
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (12)
As of 2014-09-16 14:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (26 votes), past polls