X-Git-Url: http://git.rot13.org/?p=MARC-Fast;a=blobdiff_plain;f=scripts%2Fdump_fastmarc.pl;h=f9e96f2fba8d0b90ce5e224dc8761a60da066704;hp=efce95487f2d964b3efefe6da4ac133470c52715;hb=01dc793451bb00d0a95e6b2e70ee0e8882bdf0b7;hpb=3d844dfbf091bc62a45aff80189d402d1f9cba1f diff --git a/scripts/dump_fastmarc.pl b/scripts/dump_fastmarc.pl index efce954..f9e96f2 100755 --- a/scripts/dump_fastmarc.pl +++ b/scripts/dump_fastmarc.pl @@ -1,11 +1,11 @@ #!/usr/bin/perl -w use strict; -use blib; +use lib 'lib'; use MARC::Fast; use Getopt::Std; -use Data::Dumper; +use Data::Dump qw/dump/; =head1 NAME @@ -65,9 +65,9 @@ if (my $mfn = $opt{n}) { for my $mfn ($min .. $max) { my $rec = $marc->fetch($mfn) || next; - print "rec is ",Dumper($rec) if ($opt{d}); + print "rec is ",dump($rec) if ($opt{d}); print "REC $mfn\n"; print $marc->last_leader,"\n"; print $marc->to_ascii($mfn),"\n"; - print "hash is ",Dumper($marc->to_hash($mfn, include_subfields => 1)) if ($opt{h}); + print "hash is ",dump($marc->to_hash($mfn, include_subfields => 1)) if ($opt{h}); }