From: "Joel Gwynn" <[EMAIL PROTECTED]>
   Date: Sun, 27 Jul 2003 11:33:46 -0400

   I've been using bogofilter to build up a Berkeley database of spam and
   non-spam phrases.  I'm trying to inspect the files (goodlist.db and
   spamlist.db) using dbmopen, and basically nothing happens, except that two
   very small files are created, in this case, spamlist.dir and spamlist.pag.

   Code is below.  What am I missing?

   use warnings;
   use strict;

   my %h;
   my $file = '/usr/home/qtikd/bogo_test/spamlist';
   dbmopen(%h, $file, 0666);
   while (my ($key,$val) = each %h) {
       print $key, ' = ', unpack('L',$val), "\n";
   }
   dbmclose(%h);

I don't know squat about DBM, but I usually have a pretty good eye for
missing metacharacters, so I'll hazard a guess.  Shouldn't that be "\%h"
isntead of "%h" in the dbmopoen line?

                                        -- Bob Rogers
                                           http://rgrjr.dyndns.org/
_______________________________________________
Boston-pm mailing list
[EMAIL PROTECTED]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to