Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Memory issue with large array comparison

by Cristoforo (Curate)
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.

Chris

Update: Didn't read the code correctly.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://972346]
help
Chatterbox?
[Discipulus]: choroba so much work porting from C and the resulting code exceed the 2 sec limit.. ;=(
[Corion]: r@j: But single quotes do not interpolate anything. print $Process; outputs something different than print '$Process';.

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (14)
As of 2017-10-23 15:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (280 votes). Check out past polls.

    Notices?