1package Pod::Perldoc::ToChecker; 2use strict; 3use warnings; 4use vars qw(@ISA); 5 6use vars qw($VERSION); 7$VERSION = '3.28'; 8 9# Pick our superclass... 10# 11eval 'require Pod::Simple::Checker'; 12if($@) { 13 require Pod::Checker; 14 @ISA = ('Pod::Checker'); 15} else { 16 @ISA = ('Pod::Simple::Checker'); 17} 18 19sub is_pageable { 1 } 20sub write_with_binmode { 0 } 21sub output_extension { 'txt' } 22 23sub if_zero_length { 24 my( $self, $file, $tmp, $tmpfd ) = @_; 25 print "No Pod errors in $file\n"; 26} 27 28 291; 30 31__END__ 32 33=head1 NAME 34 35Pod::Perldoc::ToChecker - let Perldoc check Pod for errors 36 37=head1 SYNOPSIS 38 39 % perldoc -o checker SomeFile.pod 40 No Pod errors in SomeFile.pod 41 (or an error report) 42 43=head1 DESCRIPTION 44 45This is a "plug-in" class that allows Perldoc to use 46Pod::Simple::Checker as a "formatter" class (or if that is 47not available, then Pod::Checker), to check for errors in a given 48Pod file. 49 50This is actually a Pod::Simple::Checker (or Pod::Checker) subclass, and 51inherits all its options. 52 53=head1 SEE ALSO 54 55L<Pod::Simple::Checker>, L<Pod::Simple>, L<Pod::Checker>, L<Pod::Perldoc> 56 57=head1 COPYRIGHT AND DISCLAIMERS 58 59Copyright (c) 2002 Sean M. Burke. All rights reserved. 60 61This library is free software; you can redistribute it and/or modify it 62under the same terms as Perl itself. 63 64This program is distributed in the hope that it will be useful, but 65without any warranty; without even the implied warranty of 66merchantability or fitness for a particular purpose. 67 68=head1 AUTHOR 69 70Current maintainer: Mark Allen C<< <mallen@cpan.org> >> 71 72Past contributions from: 73brian d foy C<< <bdfoy@cpan.org> >> 74Adriano R. Ferreira C<< <ferreira@cpan.org> >>, 75Sean M. Burke C<< <sburke@cpan.org> >> 76 77=cut 78 79