Am Mittwoch, 21. Januar 2004 01:27 schrieb Stas Bekman:
> Boris Zentner wrote:
[...]
> >>
> >>but it doesn't quite follow your previous suggestion that you should be
> >>able to find *all* Apache::RequestRec object's methods in the
> >> manpage.
> >
> > I want this yes, I use perldoc X::Y and then / to search for my needs
> > that works fine also on very large pages. But if the file is to big for
> > that, I be content with a description like the above.
> >
> > Perhaps like this:
> > First a overview what the package is good for. Followed by the groups
> > where the detailed discription of each method is found. And a part where
> > *every* method is listed by name and one line discription and again where
> > it is documented. The key for me is that at least *all* methods for the
> > Apache::RequestRec are listed. At least with a pointer to the document.
>
> That's similar to what I suggested, but it's not very effective. If you go
> through the effort of doing all that, won't it be much faster to execute:
>
> lookup foo

maybe, but this suppose that I know foo. It is often the case that I know only 
a packagename that have a method or function to help me. I like the weak 
search from perldoc since often Im not sure which method to use and browse 
up/down to read on the other methods or take a look on examples for this 
method or another. The advantage of one big page.

>
> and it'll tell you which doc to look at? For the online docs we could just
> have one huge index of all methods with xrefs to the right manpages.
>
> In fact talking about command line utils, since we already have a utility
> mp2doc, which is needed to deal with Apache2/ subdirectory where the normal

lets suppose that we use mp2doc to search. Or even better patch perldoc. 

> perldoc won't look for, I can't think why can't we plug the magical do-all
> lookup method which will find the right manpage for you:
>
>    mp2doc -f content_type
>
> ala perldoc -f, though may be using a different flag, or no flag at all (it
> can magically figure out whether it's a method or a package name.
>
> though I'm not sure what to do with methods which have different
> implementation in different classes. e.g.:
>
>    mp2doc -f read

perldoc -mp2 read

lists the three packages where a read method exists.
Apache::RequestRec
APR::Bucket
Apache::Filter

>
> read() has 3 different manpages, which one should we show? of course if you
> tell:
>
>    mp2doc Apache::RequestRec read
>
> then it'll know that you are after Apache::RequestIO.

whenever I think of it, my conclusion is to use one big page for every 
package.

mp2doc Apache::RequestRec read

should load Apache::RequestRec.pod and jump to the read description of that 
method.

>
> it's possible that we will need to have different solutions for command
> line and web utils, unless we throw all methods into one manpage.
>
> ...just brainstorming aloud here, throw your ideas please ...

choose the flags in a way that did not overlap with perldoc.

-- 
Boris

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to