7 use MARC
::File
::USMARC
;
14 my $lint = MARC
::Lint
->new();
17 my $file = MARC
::Record
->new_from_xml( @ARGV[0] );
19 #print $file->as_formatted;
20 #my $file = MARC::File::USMARC->in( 'temp_lint.mrc' );
21 #print $record->as_formatted;
23 #print "title: ", $title;
24 #print $record->as_formatted;
26 $lint->check_record($file);
27 my @warnings = $lint->warnings();
30 foreach my $warning ( @warnings ) {
31 print $warning . "\n";
36 #while ( my $marc = $file->next() ) {
37 # $lint->check_record( $marc );
40 # print $marc->title, "\n";
42 # Print the errors that were found
43 # print join( "\n", $lint->warnings ), "\n";
47 #print "Hello, world!\n";
50 #print "\ninput[0]", $input[0], "\n\n";