[cgiapp] Re: [OT] HTML::Parser::PurePerl

Ron Savage ron at savage.net.au
Thu Feb 19 19:24:29 EST 2009


Hi Lyle

On Fri, 2009-02-20 at 00:07 +0000, Lyle wrote:
> Hi Ron,
>  
> Ron Savage wrote:
> > Tree, for example, uses Scalar::Util, which uses List::Util, which uses
> > XS.
> >   
> 
> I've drawn similar wrong conclusions several times before. List::Util 
> drops back to Pure Perl if XS is not available. From Util.pm:-
> 
> # This code is only compiled if the XS did not load
> eval <<'ESQ' if !defined &sum;
> 
> I was the one who suggested Cantrell to add the Purity warnings to 
> CPANdeps. It only really tells you that XS files are a part of the 
> distribution. The only work around for this is for authors to add a 
> comment tag of # pureperl to their manifest if they use XS but can drop 
> back to Pure Perl.

$many x $thanx;

I'll reconsider Tree.

I was going by this line in Scalar::Util:

require List::Util; # List::Util loads the XS

-- 
Ron Savage
ron at savage.net.au
http://savage.net.au/index.html




More information about the cgiapp mailing list