in reply to DBM file corruption?
YuckFoo
#!/usr/bin/perl use strict; if (@ARGV < 1) { print STDERR "\nUsage $0 dbfile\n\n"; exit; } my ($dbfile) = @ARGV; my (%DB, $key, $val); if (!dbmopen(%DB, $dbfile, 0444) ) { print STDERR "\nError opening file $dbfile\n\n"; exit; } while ( ($key, $val) = each %DB) { print "$key,$val\n"; } dbmclose(%DB);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re (tilly) 2: DBM file corruption?
by tilly (Archbishop) on Jan 15, 2002 at 09:19 UTC |