Skip Menu |

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

Report information
The Basics
Id: 6876
Status: resolved
Priority: 0/
Queue: Module-Info

People
Owner: mbarbon [...] users.sourceforge.net
Requestors: schwern [...] pobox.com
Cc:
AdminCc:

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



Subject: Module::Info doesn't pick up lexical subroutines.
Module::Info won't see "lexical" subroutines. $ cat ~/tmp/bug.plx #!/usr/bin/perl -w my $_private = sub { foo(); }; sub foo { 42 } sub bar { foo() } $ perl -MData::Dumper -MModule::Info -wle '$m = Module::Info->new_from_file(shift); print Dumper $m->subroutines_called' ~/tmp/bug.plx $VAR1 = { 'name' => 'foo', 'type' => 'function', 'class' => undef, 'line' => '9' };
Hello, fixed in Module::Info 0.25 (just uploaded to PAUSE); the scanning of require() statements inside anonymous subroutines was fixed, too. Thanks Mattia