Alt-Acme-Math-XS-ModuleBuild

 view release on metacpan or  search on metacpan

Build.PL  view on Meta::CPAN

use 5.008001; use strict; use warnings; use utf8;

use lib 'inc';
use Module::Build::InlineModule;

Module::Build::InlineModule->new(
    dist_name           => 'Alt-Acme-Math-XS-ModuleBuild',
    dist_abstract       => 'Math is HARD (faster)',
    dist_author         => 'Ingy döt Net <ingy@cpan.org>',
    dist_version        => '0.0.6',
    license             => 'perl',
    requires => {
        'Test::More' => 0,

inc/Inline/Module.pm  view on Meta::CPAN


sub check_inc_inc {
    my ($class, $program) = @_;
    my $first = $INC[0] or die;
    if ($first !~ /^(\.[\/\\])?inc[\/\\]?$/) {
        die <<"...";
First element of \@INC should be 'inc'.
It's '$first'.
Add this line to the top of your '$program':

    use lib 'inc';

...
    }
}

sub importer {
    my ($class, $stub_module) = @_;
    return sub {
        my ($class, $lang) = @_;
        return unless defined $lang;



( run in 0.268 second using v1.01-cache-2.11-cpan-87723dcf8b7 )