Nevermind, I've got it.

In case anyone else has the problem, set the following option:

my $cache = Cache::FastMmap->new(
        raw_values      => 1,
);


On Wed, 28 Jul 2004 13:19:05 -0400, Mike Ward <[EMAIL PROTECTED]> wrote:
> I'm having some trouble with Cache::FastMmap and haven't found
> anything useful via the docs or Google, and was hoping someone here
> might have an idea. Below I have included the entire program, and the
> result. It's nearly word-for-word from the documentation.
> 
> Program:
> ---------------------------------
> #!/usr/bin/perl -w
> 
> #use strict;
> use Cache::FastMmap;
> 
> my $Cache = Cache::FastMmap->new();
> 
> $Cache->set('Key', 'Value');
> #my $Value = $Cache->get($Key);
> --------------------------------------
> 
> Result:
> --------------------------------------
> [EMAIL PROTECTED]:~$ ./mmaptest.pl
> not a reference at /usr/local/lib/perl/5.8.4/Cache/FastMmap.pm line 500
> ---------------------------------------
> 
> If I comment out the set() line, it shows no errors, so it's something
> in there. I've also tried using scalar variables as the arguments, but
> I get the same result.
> 
> Any feedback is appreciated, thanks in advance.
> 
> Mike Ward
> [EMAIL PROTECTED]
>

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Reply via email to