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