Your scanner is missing a heuristic exception... #6

Closed
kevindawson opened this Issue Feb 9, 2014 · 5 comments

Projects

None yet

1 participant

@kevindawson
Owner

Your scanner is missing a heuristic exception, that when it does see a

require MRO::Compat;

It should automatically discard the

require mro

It found, and subsequently the perl-minversion 5.10 req that comes with it.

@kevindawson
Owner
Perl::MinimumVersion::Reason  {
    public methods (5) : element, explanation, new, rule, version
    private methods (0)
    internals: {
        element   PPI::Statement::Include,
        rule      "_perl_5010_pragmas",
        version   version
    }
}
@kevindawson
Owner
Perl::MinimumVersion::Fast  {
    public methods (5) : minimum_explicit_version, minimum_syntax_version, minimum_version, new, version_markers
    private methods (2) : _build_minimum_explicit_version, _build_minimum_syntax_version
    internals: {
        minimum_explicit_version   undef,
        minimum_syntax_version     version,
        version_markers            {
            5.010   [
                [0] "use mro"
            ]
        }
    }
}
@kevindawson
Owner

I will e-mail the autors of

Perl::MinimumVersion
Perl::MinimumVersion::Fast

to see if this belongs in there world

@kevindawson
Owner

the above issue is from the following code snippet

BEGIN {
  # use Module::Runtime to work around the 5.8 require bugs
  if ($] < 5.009_005) {
    Module::Runtime::require_module('MRO::Compat');
  }
  else {
    require mro;
  }
}
@kevindawson
Owner

fixed in 0.31_05

for more info see: mro - MRO::Compat catch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment