Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: detecting pod in files?

by davidrw (Prior)
on Aug 17, 2005 at 15:18 UTC ( [id://484465]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://484465]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-04-24 02:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found