in reply to Re: Memoize::Expire oddity
in thread Memoize::Expire oddity
I tried MERGE too and got the same error. I was using 5.16.2 on Windows. That's my work box. I'm home now on Linux, MERGE is also not helping me. am I using the option wrongly?
r@Che ~ $ perl -MMemoize -MMemoize::Expire -E "sub f {int rand 100}; \ tie my %cache => 'Memoize::Expire',LIFETIME=>2,LIST_CACHE=>' +MERGE';\ memoize 'f',SCALAR_CACHE => [HASH => \%cache ];\ for (1..10) {say f(); sleep 1}" 45 45 45 45 45 45 45 45 45 45 r@Che ~ $ perl -v This is perl 5, version 14, subversion 2 (v5.14.2) built for x86_64-li +nux-gnu-thread-multi (with 65 registered patches, see perl -V for more detail) Copyright 1987-2011, Larry Wall Perl may be copied only under the terms of either the Artistic License + or the GNU General Public License, which may be found in the Perl 5 source ki +t. Complete documentation for Perl, including FAQ lists, should be found +on this system using "man perl" or "perldoc perl". If you have access to + the Internet, point your browser at http://www.perl.org/, the Perl Home Pa +ge.
Cheers,
R.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Memoize::Expire oddity
by ryanc (Monk) on Aug 16, 2013 at 18:32 UTC | |
by Yary (Pilgrim) on Aug 29, 2013 at 15:18 UTC | |
by ryanc (Monk) on Aug 29, 2013 at 18:36 UTC | |
by Yary (Pilgrim) on Aug 30, 2013 at 00:00 UTC |