Dear Log,
Re:New options
TorgoX on 2002-11-11T19:07:53
Whoops, I just realized I forgot to list the new options in the usage screens. It's in "perldoc3 perldoc3" tho. Notably: -T terminalThis specifies that the output is not to be sent to a pager, but is to be sent right to STDOUT.
-d destination-filename
This specifies that the output is to be sent neither to a pager nor to STDOUT, but is to be saved to the specified filename. Example:
perldoc -oLaTeX -dtextwrapdocs.tex Text::Wrap
-o output-formatname
This specifies that you want Perldoc to try using a Pod-formatting class for the output format that you specify. For example:
-oman
. This is actually just a wrapper around the-M
switch; using-oformatname
just looks for a loadable class by adding that format name (with different capitalizations) to the end of different classname prefixes.For example,
-oLaTeX
currently tries all of the following classes: Pod::Perldoc::ToLaTeX Pod::Perldoc::Tolatex Pod::Perldoc::ToLatex Pod::Perldoc::ToLATEX Pod::Simple::LaTeX Pod::Simple::latex Pod::Simple::Latex Pod::Simple::LATEX Pod::LaTeX Pod::latex Pod::Latex Pod::LATEX.-M module-name
This specifies the module that you want to try using for formatting the pod. The class must must at least provide a
parse_from_file
method. For example:perldoc -MPod::Perldoc::ToChecker
.You can specify several classes to try by joining them with commas or semicolons, as in
-MTk::SuperPod;Tk::Pod
.-w option:value or -w option
This specifies an option to call the formatter with. For example,
-w textsize:15
will call$formatter->textsize(15)
on the formatter object before it is used to format the object. For this to be valid, the formatter class must provide such a method, and the value you pass should be valid. (So iftextsize
expects an integer, and you do-w textsize:big
, expect trouble.)You can use
-w optionname
(without a value) as shorthand for-w optionname:TRUE
. This is presumably useful in cases of on/off features like:-w page_numbering
.You can use a "=" instead of the ":", as in:
-w textsize=15
. This might be more (or less) convenient, depending on what shell you use.
Re:New options
ethan on 2002-11-11T21:08:58
Whoops, I just realized I forgot to list the new options in the usage screens. It's in "perldoc3 perldoc3" tho. Notably: -T terminal
Ah, great! I can directly perldoc into a vim buffer finally or somewhere else(for ease of further processing). Very nice!
I'll think I just add an alias to make perldoc3 a replacement for the current perldoc. Thus, possible bugs should show up most quickly if any.Re:New options
TorgoX on 2002-11-12T04:12:45
Ah, great! I can directly perldoc into a vim buffer finally or somewhere else(for ease of further processing). Very nice!That should have worked before (without the explicit -T) -- but sometimes didn't. Now you can use -T to make totally clear "no pager!!".
I'll think I just add an alias to make perldoc3 a replacement for the current perldoc. Thus, possible bugs should show up most quickly if any.
Wow, thanks! I'll be sure to post news, here in my log, of any new Perldoc versions.
Re:thanks
TorgoX on 2002-11-11T19:25:27
Nope, I'm not using any particular bug-tracking software; just email me any reports of trouble.As to what to test: anything and everything -- the whole thing is either all new, or newly refactored. Like someone just told me "-i" isn't working anymore, which I didn't notice because I've been using MSWin, where it's a no-op. I don't remember messing with the "-i" code, but I'll have a look at it now.