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

Re: Hidden dependencies?

Thread Previous | Thread Next
From:
Nick Ing-Simmons
Date:
October 1, 2003 08:29
Subject:
Re: Hidden dependencies?
Message ID:
20031001152910.3428.2@llama.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?



Thread Previous | Thread Next


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