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

October 1, 2003 16:17

Message ID:
Actually Pod::Perldoc has a rather complicated system for loading the
formatting module. If you do 

perldoc -o Format

it will attempt to load


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


Original Message:
From: Nick Ing-Simmons

Fergal@Pop.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 doesn't make any sense because Tk is not
>an optional requirement for, 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 . Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About