blob: 5f16fc3c68f6233156ec2eff2aa9ef41cad92f66 (
plain)
- #!/usr/bin/perl -w
- use strict;
- use DB_File;
- die "syntax: $0 filename.db [...]\n" unless @ARGV;
- file: for my $file (@ARGV) {
- my %h;
- dbmopen(%h, $file, 0) || do {
- warn "$0: dbmopen($file): $!\n";
- next file;
- };
- print "$_ -> $h{$_}\n" for keys %h;
- }
|