Skip Menu |

This queue is for tickets about the Perl-MinimumVersion CPAN distribution.

Report information
The Basics
Id: 101043
Status: open
Priority: 0/
Queue: Perl-MinimumVersion

People
Owner: Nobody in particular
Requestors: ether [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.38
Fixed in: (no value)



Subject: Not detecting XS functions added in recent releases
Cond::Expr uses the perl API parse_fullexpr(), which was added in 5.14.0 -- see L<perl5140delta/New-Parsing-Functions> -- but this is not detected.
Does this module even handle XS? AFAICT it just uses PPI, which apparently tries to parse the XS as Perl and comes up with some strange result. It seems like this module should be explicitly ignoring XS code.
On Sat Nov 18 12:59:38 2017, DROLSKY wrote: Show quoted text
> Does this module even handle XS? AFAICT it just uses PPI, which > apparently tries to parse the XS as Perl and comes up with some > strange result. It seems like this module should be explicitly > ignoring XS code.
Couldn't you just have a list of strings to search for in the XS code and if you see them, report back 5.14.0 (or whatever) as the minimum version? I realize this leaves things open to corner cases but I bet it gets 99.x % of the cases.