From: Father Chrysostomos (via RT) <perlbug-followup@perl.org>
Message-ID: <rt-3.6.HEAD-30201-
1173557915-1780.41775-75-0@perl.org>
p4raw-id: //depot/perl@30729
# Version 1.01 $Revision: 1.18 $ $Date: 2001/06/24 17:16:47 $
package Memoize;
-$VERSION = '1.01_01';
+$VERSION = '1.01_02';
# Compile-time constants
sub SCALAR () { 0 }
# Otherwise, we cached an array containing the returned list:
return @$val;
} else {
- my $q = $cache->{$argstr} = [&{$info->{U}}(@_)];
- @$q;
+ my @q = &{$info->{U}}(@_);
+ $cache->{$argstr} = $info->{O}{LIST_CACHE} eq 'MERGE' ? $q [0] : \@q;
+ @q;
}
} else {
croak "Internal error \#42; context was neither LIST nor SCALAR\n";