in reply to detecting pod in files?

You can use the program podchecker (see its man page) and check the status code returned on the the shell (2 means no pod found). Looking at its source, it uses the podchecker() function from Pod::Checker which returns -1 if no valid pod found.
use Pod::Checker; my $rc = podchecker($filepath, $outputpath, %options); if( $rc > 0 ){ # errors }elsif( $rc < 0 ){ # no pod found }else{ # ok! }

Replies are listed 'Best First'.
Re^2: detecting pod in files?
by edwyr (Sexton) on Aug 27, 2005 at 15:08 UTC
    The suggestion to use podchecker really helped. Thanks a lot.