Re: Problem installing IO::Compress::Base
- From: sisyphus1@xxxxxxxxxxxxxxx
- Date: Sat, 29 Sep 2007 18:04:44 -0700
On Sep 30, 4:10 am, John Oliver <joli...@xxxxxxxxxxxxxxx> wrote:
but no explanations of how
to determine whether or not you're installing an "XS" version of
Scalar::Util
Yes - I didn't spot any such explanation.
At the beginning of the Scalar-List-Utils Makefile.PL you'll find:
my $do_xs = can_cc();
where 'can_cc' is a Module::Install sub. The return of 'can_cc'
determines whether it's an XS build or a pure perl build.
The IO::Compress::Base test file (01misc.t) determines whether you
have the XS or pure perl version of Scalar::Util by calling the
CompTestUtils.pm subroutine 'gotScalarUtilXS' which looks like:
sub gotScalarUtilXS
{
eval ' use Scalar::Util "dualvar" ';
return $@ ? 0 : 1 ;
}
Apparently, 'dualvar' is available only with the xs build.
(CompTestUtils.pm is part of the IO::Compress::Base source.)
Cheers,
Rob
.
- References:
- Problem installing IO::Compress::Base
- From: John Oliver
- Re: Problem installing IO::Compress::Base
- From: Ben Morrow
- Re: Problem installing IO::Compress::Base
- From: John Oliver
- Problem installing IO::Compress::Base
- Prev by Date: FAQ 4.31 How can I split a [character] delimited string except when inside [character]?
- Next by Date: in what array do all the $1,$2,... live?
- Previous by thread: Re: Problem installing IO::Compress::Base
- Next by thread: FAQ 3.24 Why don't Perl one-liners work on my DOS/Mac/VMS system?
- Index(es):