--- trunk/scripts/dump_isisdb.pl 2006/08/25 16:35:47 67 +++ trunk/scripts/dump_isisdb.pl 2006/08/26 23:09:20 68 @@ -17,9 +17,9 @@ } my %opt; -getopts('dn:', \%opt); +getopts('do:l:', \%opt); -my $isisdb = shift @ARGV || die "usage: $0 [-n number] [-d] /path/to/isis/BIBL\n"; +my $isisdb = shift @ARGV || die "usage: $0 [-o offset] [-l limit] [-d] /path/to/isis/BIBL\n"; my $isis = Biblio::Isis->new ( isisdb => $isisdb, @@ -30,9 +30,9 @@ print "rows: ",$isis->count,"\n\n"; -my $min = 1; +my $min = $opt{o} || 1; my $max = $isis->count; -$max = $opt{n} if ($opt{n}); +$max = ( $min + $opt{l} - 1 ) if ($opt{l}); for my $mfn ($min .. $max) { print STDERR Dumper($isis->to_hash($mfn)),"\n" if ($opt{'d'});