Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 romping around the Monastery: (6)
As of 2015-07-08 04:29 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 (94 votes), past polls