Hmmm.
I'm trying to automate the installation of several modules (ok, all of
CPAN).
Many of these use ::prompt. Sometimes I do NOT want the defaults, but give
it an answer.
However, something like:
#!/bin/sh
perl Makefile.PL << \EOF
one
two
three
EOF
does NOT work, because of the tty checks.
A bit frustrating.
So, I can either contact every single module maintainer out there and ask
them to be sure to include support for command line parameters, or could
tweak MakeMaker.pm. I think the latter is more likely to get accomplished.
So, would something like:
- if ($ISA_TTY && !$ENV{PERL_MM_USE_DEFAULT}) {
+ if (($ISA_TTY && !$ENV{PERL_MM_USE_DEFAULT}) || $ENV{PERL_MM_USE_STDIN}) {
be acceptable?
mrc
--
Mike Castle [EMAIL PROTECTED] www.netcom.com/~dalgoda/
We are all of us living in the shadow of Manhattan. -- Watchmen
fatal ("You are in a maze of twisty compiler features, all different"); -- gcc