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

Re: Memory issue with large array comparison

by Cristoforo (Deacon)
on May 25, 2012 at 01:10 UTC ( #972346=note: print w/replies, xml ) Need Help??

in reply to Memory issue with large array comparison

Just to point out, in your code

my @list = grep { my $x = $_; not grep { $x =~ /$_\w+$/ } @safe_list } @pathnames;

the first grep from the left should probably be a map instead.


Update: Didn't read the code correctly.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://972346]
[Corion]: The upside to this is that I've reduced my $work (well, $paid) time to 80%, so I'll be at $work only four days/week, which will hopefully make the crunch less crunchy on me ;)
[marto]: yeah, so that stays as before. But before the boys were born I'd be on quite often at night (GMT) also
[marto]: I had the option during our TUPE transfer to buy 5 more days holiday. They were shocked when I did :P

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2017-06-29 08:27 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (655 votes). Check out past polls.