X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;ds=sidebyside;f=scripts%2Fdump_isisdb.pl;h=c2f5227c551ce4887f3a669cc50648df8e393f45;hb=b038a505104c4212dddfa71ab5914b49c3c8e4e7;hp=d923ba70bb6ea53c1c6e993715ba4c197cdffe56;hpb=a0f367ba3475ceac5185dc8c18b387795415e1b1;p=Biblio-Isis diff --git a/scripts/dump_isisdb.pl b/scripts/dump_isisdb.pl index d923ba7..c2f5227 100755 --- a/scripts/dump_isisdb.pl +++ b/scripts/dump_isisdb.pl @@ -1,11 +1,20 @@ #!/usr/bin/perl -w use strict; -#use blib; +use blib; use Biblio::Isis; use Getopt::Std; -use Data::Dumper; + +BEGIN { + eval "use Data::Dump"; + + if (! $@) { + *Dumper = *Data::Dump::dump; + } else { + use Data::Dumper; + } +} my %opt; getopts('dn:', \%opt); @@ -14,7 +23,7 @@ my $isisdb = shift @ARGV || die "usage: $0 [-n number] [-d] /path/to/isis/BIBL\n my $isis = Biblio::Isis->new ( isisdb => $isisdb, - debug => $opt{'d'}, + debug => $opt{'d'} ? 2 : 0, include_deleted => 1, # read_fdt => 1, );