Roman Daszczyszak <> wrote:
> I have ActivePerl 5.8.8 build 820 installed, and used ppm to pull
> down the MLDBM module. I am trying to use Storable for the data
> serializer for MLDBM with a DB_HASH, but when I tried to test it, it
> returned this error:
> Can't locate auto/Storable/TIEHASH.al in @INC (@INC contains:
> C:/Perl/site/lib C:/Perl/lib .) at C:/Perl/site/lib/MLDBM.pm line 143
>
> I'm using the Storable that came with the distribution, so I'm not
> sure how to obtain whatever is missing. Can anyone point me in the
> right direction?
>
> Here is my test code:
> ------------------------------------------------------
> #!/perl/bin/perl
> use strict;
> use warnings;
>
> use Data::Compare;
> use Data::Dumper;
> use MLDBM qw(Storable);
It looks like MLDBM expects the first 'use' parameter to be the DB
package, and the second to be the serializer, although I don't think
that is made very clear in the documentation. At least, that would be my
guess from a quick look at the import function.
See the examples in the documentation. They either have no 'use'
parameters or 2, e.g.
use MLDBM qw(DB_File Storable);
Either that, or try the UseDB and/or Serializer methods.
As an aside, it does seem quite old. Untouched for over 5 years. Still,
if it does the job ...
### New reply - not sure why Brian's emails don't automatically get >
indented?? ###
I had a similar issue with this some time back - the code which I was using
(from someone elses example script) was:
eval {
BEGIN { @AnyDBM_File::ISA = qw(DB_File GDBM_File SDBM_File) };
use AnyDBM_File;
use MLDBM qw(AnyDBM_File Storable);
use Fcntl qw(:DEFAULT :flock);
};
but it was fixed by installing DB_File. I don't really understand what is
going on though.
For what its worth I have since used DBM::Deep in similar situations which I
found much simpler.
Mark
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs