Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 meditating upon the Monastery: (9)
As of 2014-07-23 23:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (154 votes), past polls