On Thu, 14 Feb 2002, Leon Brocard wrote:

> I had to test the OpenFrame module on lots and lots of platforms which
> involved installing a great number of Perl modules. I didn't
> appreciate modules being interactive when they didn't absolutely have
> to be. I don't necessarily want to connect to databases just install
> the actual module. Thankyou for listening ;-)

(Following up from Leon, OT for Skud's initial request)

I'm working on a script that installs all of our modules.  I note that
DBD::Mysql has switched from the interactive mode it used to use to
accepting options on to Makefile.PL.  This is a *good* *thing* as
everything should just install automagically when I go and get a cup of
tea.  By default it now uses no username and password (which will work for
most people) but allows me to change these via a --testuser and
--testpassword directives.

So..sensible default values, options to change to Makefile.PL for those 
cases where you need to...and maybe then falling back to it being 
interactive?

Makes my life easier.

One other way is doing it like the Template Toolkit does.  By 
default it's interactive, and you pass it TT_QUIET=y TT_ACCEPT=y to get it 
to shut up and just damn well install (I do this via 
$CPAN::Config->{makepl_args}.)

I assume you did this Leon?

Mark.

-- 
s''  Mark Fowler                                     London.pm   Bath.pm
     http://www.twoshortplanks.com/              [EMAIL PROTECTED]
';use Term'Cap;$t=Tgetent Term'Cap{};print$t->Tputs(cl);for$w(split/  +/
){for(0..30){$|=print$t->Tgoto(cm,$_,$y)." $w";select$k,$k,$k,.03}$y+=2}


Reply via email to