summaryrefslogtreecommitdiff
path: root/db-show
blob: 5f16fc3c68f6233156ec2eff2aa9ef41cad92f66 (plain)
  1. #!/usr/bin/perl -w
  2. use strict;
  3. use DB_File;
  4. die "syntax: $0 filename.db [...]\n" unless @ARGV;
  5. file: for my $file (@ARGV) {
  6. my %h;
  7. dbmopen(%h, $file, 0) || do {
  8. warn "$0: dbmopen($file): $!\n";
  9. next file;
  10. };
  11. print "$_ -> $h{$_}\n" for keys %h;
  12. }