NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
New options (Score:1)
One note about the current dist: since this is just an alpha release, it doesn't replace your perldoc executable, but instead gives you a new executable called "perldoc3". So don't try using the new options with your old perldoc.
What exactly are the new options? I didn't yet find any difference (except for the removal of the annoying taint-checking thing when being root).
Oh, just noticed that: something odd has happened to the -i switch. Doesn't work for my any lon
Re:New options (Score:2)
This 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-Mswitch; using-oformatnamejust looks for a loadable class by adding that format name (with different capitalizations) to the end of different classname prefixes.For example,
-oLaTeXcurrently 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_filemethod. 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:15will 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 iftextsizeexpects 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.Reply to This
Parent
Re:New options (Score:1)
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 (Score:2)
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.