develooper Front page | perl.perl5.porters | Postings from October 2003

From:
fergal@pop.esatclear.ie
Date:
October 1, 2003 16:17
Subject:

Message ID:
99610-220031031154546416@M2W071.mail2web.com
Actually Pod::Perldoc has a rather complicated system for loading the
formatting module. If you do 

perldoc -o Format

it will attempt to load

Pod::Perldoc::ToFormat
Pod::Simple::Format
Pod::Format

and whichever succeeds first will get used. It actually uses require in an
eval so use if isn't even a remote possibility. Even if you don't use -o,
it still uses the same mechanism to try find the best formatter available.

Not scanning for module deps in the first place would seem to be the right
approach,

F

Original Message:
-----------------
From: Nick Ing-Simmons nick.ing-simmons@elixent.com


Fergal@Pop.Esatclear.Ie <fergal@esatclear.ie> writes:
>My email did contain a suggestion for helping them. Unless they're doing
>funny things, packages should be able to work out their own must haves and
>their own like to haves simply by knowing what modules will be publicly
>used or required and tracing from there on.
>
>I think adding "use if" to ToTk.pm doesn't make any sense because Tk is not
>an optional requirement for ToTk.pm, it's mandatory. ToTk is an optional
>requirement for perldoc but a "use if" would be no good there either
>because you only want to use Tk if the command line switches ask for it,

and presumably 

use if $opt{...} ToTk;

is no good because %opt isn't set at BEGIN time?



--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .





nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About