NAME
Text::BibTeX::Validate - validator for BibTeX format
SYNOPSIS
use Text::BibTeX;
use Text::BibTeX::Validate qw( validate_BibTeX );
my $bibfile = Text::BibTeX::File->new( 'bibliography.bib' );
while( my $entry = Text::BibTeX::Entry->new( $bibfile ) ) {
validate_BibTeX( $entry );
}
DESCRIPTION
Text::BibTeX::Validate checks the standard fields of BibTeX entries for their compliance with their format. In particular, value of email
is checked against RFC 822 mandated email address syntax, value of doi
is checked to start with 10.
and contain at least one /
and so on. Some nonstandard fields as isbn
, issn
and url
are also checked. Failures of checks are raised as Perl warnings.
Subroutine validate_BibTeX
currently accepts plain Perl hash references containing BibTeX fields and their values, as well as Text::BibTeX::Entry objects.
SEE ALSO
perl(1)
AUTHORS
Andrius Merkys, <merkys@cpan.org>