Skip Menu |

This queue is for tickets about the Memoize-Saves CPAN distribution.

Report information
The Basics
Id: 91830
Status: new
Priority: 0/
Queue: Memoize-Saves

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.67
Fixed in: (no value)



Subject: Behavior change between Memoize 1.02 and 1.03
The attached test script is successful with Memoize::Saves 0.67 and Memoize 1.02, but fails with Memoize 1.03. Regards, Slaven
Subject: memoize.pl
#!/usr/bin/perl use strict; use Memoize; use Test::More 'no_plan'; my %cache; memoize 'test_memoize', SCALAR_CACHE => ['TIE', 'Memoize::Saves', HASH => \%cache, REGEX => qr/^something/, ], LIST_CACHE => 'MERGE', ; my $called = 0; sub test_memoize { $called++; "something"; } my $first = test_memoize(); my $second = test_memoize(); is $first, q{something}; is $second, q{something}; is $called, 1, 'only one call to test_memoize()';
On 2014-01-03 09:19:46, SREZIC wrote: Show quoted text
> The attached test script is successful with Memoize::Saves 0.67 and > Memoize 1.02, but fails with Memoize 1.03.
Maybe caused by https://rt.cpan.org/Ticket/Display.html?id=91927 Regards, Slaven