Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

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> ];
instead.

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> ];

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


Comment on Re: slurping many Arrays into memory...Please Help
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (22)
As of 2014-07-24 15:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (161 votes), past polls