Skip Menu |

This queue is for tickets about the Module-ExtractUse CPAN distribution.

Report information
The Basics
Id: 83569
Status: resolved
Priority: 0/
Queue: Module-ExtractUse

People
Owner: Nobody in particular
Requestors: ribasushi [...] leporine.io
Cc:
AdminCc:

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



Subject: Plain `require Foo;` not recognized
Running the one-liner below wget http://api.metacpan.org/source/RIBASUSHI/DBIx-Class-0.08208/xt/pod.t -q -O - | perl -MData::Dumper -MModule::ExtractUse -e 'print Dumper [ Module::ExtractUse->new->extract_use(\do { local $/; <STDIN> })->used ]' Does not recognize the `require Test::Pod;` line :(
Am Sa 23. Feb 2013, 11:11:39, RIBASUSHI schrieb: Show quoted text
> Running the one-liner below > > wget http://api.metacpan.org/source/RIBASUSHI/DBIx-Class- > 0.08208/xt/pod.t -q -O - | perl -MData::Dumper -MModule::ExtractUse > -e 'print Dumper [ Module::ExtractUse->new->extract_use(\do { local > $/; <STDIN> })->used ]' > > Does not recognize the `require Test::Pod;` line :(
Fixed (in git, I will push a new release in a few minutes). The regex that cleaned up the code to parse wasn't strict enough and tripped over the string "Failed to load release-testing module requirements" (which contains "require") and the fact that there was no semicolon after the ternary operator. Thus everything from $ENV{RELEASE_TESTING} up to require Test::Pod was interpreted as one statement. And the not-optimal regex hit "requirements".. Anyway, this is fixed now for require and use. Thanks, domm
Module-ExtractUse-0.29 is on it's way to CPAN