in reply to Massive memory leak (AS 810)

Looks like a bug in the XS version of reduce. The perl version doesn't seem to leak
#! perl -slw sub reduce (&@) { my $code = shift; return shift unless @_ > 1; my $caller = caller; local(*{$caller."::a"}) = \my $a; local(*{$caller."::b"}) = \my $b; $a = shift; foreach (@_) { $b = $_; $a = &{$code}(); } $a; } use strict; #use List::Util qw[ reduce ]; sub s1 { my $r = shift; reduce{ $r->[0] } 1 .. 10; } while( 1 ) { my $t = map s1( $_ ), [1], [2], [3]; }

MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
** The third rule of perl club is a statement of fact: pod is sexy.