Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: multidimensional array's

by 2teez (Priest)
on Dec 27, 2012 at 19:48 UTC ( #1010570=note: print w/ replies, xml ) Need Help??

in reply to multidimensional array's

"..$results[$loopcount] [1] = (@$row[1]); THIS LINE IS NOT WORKING..."

If I get your question right, and you suppose to generate an ARRAY of ARRAY, you could do something like this: Please note, this will only show you how to go about solving your question

my @AoA; while (<DATA>) { push @AoA, [split]; } use Data::Dump; dd \@AoA; __DATA__ First line of the file. Second line of the file. Third line of the file. Fourth line of the file. Fifth line of the file. Sixth line of the file.
[ ["First", "line", "of", "the", "file."], ["Second", "line", "of", "the", "file."], ["Third", "line", "of", "the", "file."], ["Fourth", "line", "of", "the", "file."], ["Fifth", "line", "of", "the", "file."], ["Sixth", "line", "of", "the", "file."], ]
Learn about this and more, please check perldsc and ARRAY of ARRAY

If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me

Comment on Re: multidimensional array's
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (11)
As of 2015-11-25 16:31 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (683 votes), past polls