I'll update the documentation on the next release.

Rob

----- Original Message ----- From: "Thomas Schindl" <[EMAIL PROTECTED]>
To: "Mike Ward" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, July 28, 2004 2:08 PM
Subject: Re: Cache::FastMmap



I think when you don't use raw_values => 1 as parameter you have
to pass your data as references because Storable expects references.

Maybe you could point the module author to mention that in the modules
man-page.

When searching how to use things often the test-suite gives you a good
pointers what's going on e.g. in this case
http://search.cpan.org/src/ROBM/Cache-FastMmap-1.06/t/8.t

Tom

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


-- NEU: WLAN-Router für 0,- EUR* - auch für DSL-Wechsler! GMX DSL = supergünstig & kabellos http://www.gmx.net/de/go/dsl


-- 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




--
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