Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: slurping many Arrays into memory...Please Help

by sauoq (Abbot)
on May 24, 2012 at 01:38 UTC ( #972151=note: print w/replies, xml ) Need Help??

in reply to slurping many Arrays into memory...Please Help

Update2: I think I got something working can someone check if its OK?

It looks like you've still got some issues to me.

You should probably chomp your file names, for one.

And you're not building your array of arrays right. Your line:

push @allfiles, <FILE>;
Will push all of the lines from all of the files on one array, @allfiles. You want:
push @allfiles, [ <FILE> ];

BTW, if you want to keep the filenames, you can use a hash of arrays instead... then the line would look like:

$allfiles{ $filename } = [ <FILE> ];

"My two cents aren't worth a dime.";

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://972151]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2018-03-25 02:08 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (299 votes). Check out past polls.