Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: Very Odd Issue When Using pp to Create an .exe File Including Date::Calc

by swl (Parson)
on Jun 28, 2017 at 23:50 UTC ( [id://1193792]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Very Odd Issue When Using pp to Create an .exe File Including Date::Calc
in thread Very Odd Issue When Using pp to Create an .exe File Including Date::Calc

No worries perldigious.

As haukex noted, Module::ScanDeps is a regexp based parser so it's perhaps not surprising that it misses some things when parsing perl code.

That said, I had a quick look at the Module::ScanDeps code and it's probably in scan_line where it does an early return while processing semicolon separated chunks and it finds a chunk where a perl version >= 5.9.5 is being used (currently line 812). When it finds a matching chunk it returns feature.pm and thus stops processing the rest of the line. It should probably add feature.pm to %found and call next instead.

There looks to be a similar issue in the following block where it handles pragmas.

If I get a chance I'll submit a pull request to the github repo, but others are welcome to beat me to it as it won't be today.

Replies are listed 'Best First'.
Re^4: Very Odd Issue When Using pp to Create an .exe File Including Date::Calc
by swl (Parson) on Jul 03, 2017 at 21:54 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1193792]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (2)
As of 2024-04-26 03:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found