On Dec 22, 2007 2:12 PM, chromatic <[EMAIL PROTECTED]> wrote:
> I agree in principle, but in practice I seem to get a lot of failure reports
> from someone who's installed Perl on Windows into a directory with spaces in
> the name, and whatever installer there is just can't cope with that
> situation.
>
> I'm not sure how to write a test for "Tester's installation of Perl is fatally
> broken and can't actually install anything."
Oh, come on. This is Perl, after all.
# Top of Makefile.PL
if ( $^X =~ /\s/ ) {
print STDERR "Can't install: '$^X' has spaces in the path";
exit 0; # no Makefile created, exit 0 avoids FAIL report
}
If you really want robustness, perhaps:
use File::Spec;
use Cwd qw/cwd/;
if ( grep { /\s/ } ($^X, File::Spec->tmpdir(), cwd) ) {
# etc
}
David