Bloodnok has asked for the wisdom of the Perl Monks concerning the following question:
Having had a bit of a Super Search round (initially, I tried googling myself silly ... but enjoyed it far too much), I don't seem to be able to find what I'm looking for .. but then again it could be that I'm not asking quite the right question ;-)
This time, the question to which I seek an answer is (takes deep breath and asks more in hope than expectation) ...
Does anybody know of a way to use perldoc (or an alternative) in a manner similar to the perldoc -f <func> command to list the doc for a built-in.
The difference being that I'd like to run it against any CPAN/bespoke module such that the given functions' doc is listed from said module e.g. perldoc -f sub Foo::Bar to list the doc for Foo::Bar::sub() ... c/w perldoc Foo::Bar and get the user to trawl thro' looking for the requisite information on sub.
TIA ,
Sits back to await xmas and enlightening answers - but not necessarily in that order :-)
Update:
.oO(Hmmm, maybe emulate perldoc itself - getting the wanted behaviour by overloading one/some of the Pod::Perldoc::* methods as appropriate i.e. iff called with -f & 2 args and then handing off to perldoc itself...)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: POD, come let me see thee, I have thee not, but still I clutch thee
by LanX (Saint) on Dec 18, 2008 at 21:35 UTC | |
|
Re: POD, come let me see thee, I have thee not, but still I clutch thee
by jplindstrom (Monsignor) on Dec 18, 2008 at 20:37 UTC | |
|
Re: POD, come let me see thee, I have thee not, but still I clutch thee
by LanX (Saint) on Dec 18, 2008 at 15:44 UTC | |
|
Re: POD, come let me see thee, I have thee not, but still I clutch thee
by Zen (Deacon) on Dec 18, 2008 at 20:15 UTC | |
|
Re: POD, come let me see thee, I have thee not, but still I clutch thee
by Anonymous Monk on Dec 18, 2008 at 15:42 UTC |