Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Reading Sendmail .db files

by Maddingue (Sexton)
on Nov 22, 2004 at 17:17 UTC ( #409653=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      #!/usr/bin/perl
      use BerkeleyDB;
    ...
    
      print "db contains ", scalar(keys %hash), " entries\n";
      print map { "  $_ => $hash{$_}\n" } sort keys %hash;
    
  2. or download this
      #!/usr/bin/perl
      use DB_File;
    ...
    
      print "$file has ", scalar(keys %hash), " entries\n";
      print map { "  $_ => $hash{$_}\n" } sort keys %hash;
    
  3. or download this
      type parameter is not a reference at /usr/lib/perl5/5.6.1/i386-linux
    +/DB_File.pm line 262.
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://409653]
Approved by Paladin
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (12)
As of 2021-01-27 15:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?