Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re^2: detecting pod in files?

by brian_d_foy (Abbot)
on Aug 17, 2005 at 17:17 UTC ( #484492=note: print w/replies, xml ) Need Help??

in reply to Re: detecting pod in files?
in thread detecting pod in files?

You can't do it this simply. Although a pod directive starts at the beginning of a line with an =, that has to happen when Perl isn't expecting something else. (Curiously, BBEdit gets this wrong too).

# this isn't pod $time =time ;
$string =<<"HERE"; =value =item HERE

You can can't just look for a particular pod directive (such as =pod, in the original post, because it might not show up. Indeed, I have rarely used =pod.

There are plenty of Pod modules, so use those instead of rolling your own. :)

brian d foy <>

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2022-09-27 19:55 GMT
Find Nodes?
    Voting Booth?
    I prefer my indexes to start at:

    Results (124 votes). Check out past polls.