better example with repetable field and subfields
[MARC-Fast] / scripts / dump_fastmarc.pl
index fc6317c..f9e96f2 100755 (executable)
@@ -1,7 +1,7 @@
 #!/usr/bin/perl -w
 
 use strict;
-use blib;
+use lib 'lib';
 
 use MARC::Fast;
 use Getopt::Std;
@@ -69,5 +69,5 @@ for my $mfn ($min .. $max) {
        print "REC $mfn\n";
        print $marc->last_leader,"\n";
        print $marc->to_ascii($mfn),"\n";
-       print "hash is ",dump($marc->to_hash($mfn)) if ($opt{h});
+       print "hash is ",dump($marc->to_hash($mfn, include_subfields => 1)) if ($opt{h});
 }