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:
Will push all of the lines from all of the files on one array, @allfiles. You want:push @allfiles, <FILE>;
instead.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> ];
|
|---|