That will only find the POD. If POD and pm are in two different files, then you are out of luck.
See Re: Re: whichpm for more comments.
| [reply] |
Thanks, I didn't know that. But then there is always perldoc -m LWP::Simple
YuckFoo
| [reply] |
Yes, but that is far simpler than any of the other answers mentioned, and works for most modules - the modules with separate pod files aren't as common, and the pod file is usually in the same repository (same general path) as the pm file itself, so it's still pointing you in the right direction.
Personally, I prefer the quick and concise method that works most of the time. If it fails, then I'd go after one of the more complex methods listed here.
++ to the OP. If he hadn't posted it, I would have.
~J
| [reply] |