develooper Front page | perl.perl5.porters | Postings from September 2013

Re: [perl #119869] [PATCH] WinCE Makefile and generaland XS fixes

Thread Previous
Nicholas Clark
September 20, 2013 09:30
Re: [perl #119869] [PATCH] WinCE Makefile and generaland XS fixes
Message ID:
On Thu, Sep 19, 2013 at 12:11:56AM -0700, bulk88 via RT wrote:

> That is a mistake. Should I remove the eval form use constant and do it
> as you suggested, or not use constant at all and roll my own to avoid
> the overhead of "use constant" since that module hasn't been used before
> in, example below
>       eval 'sub IS_CROSS() { '.(defined $::Cross::platform ? 1 : 0).' }';

I'd suggest using constant, as I think that it's clearer to anyone reading
the code. It's already available to the build process, as it's stuffed into
@INC by lib/

Nicholas Clark

Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About