Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Stepping through a hash while modifiying its content

by karlgoethebier (Curate)
on Dec 28, 2012 at 14:43 UTC ( #1010711=note: print w/ replies, xml ) Need Help??


in reply to Stepping through a hash while modifiying its content

Perhaps you can do it with List::Pairwise instead?

use List::Pairwise qw(grepp); # grep hash subset my %subset1 = grepp {$a =~ /^ba/} %hash; my %subset2 = grepp {$b < 5} %hash;

See List::Pairwise

"...and my files are huge"

I don't know how your files look. Perhaps you can provide an example...

I'm just guessing. Regards, Karl

«The Crux of the Biscuit is the Apostrophe»


Comment on Re: Stepping through a hash while modifiying its content
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (10)
As of 2014-11-28 11:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (196 votes), past polls