Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: user42 [...] zip.com.au
Cc:
AdminCc:

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



Subject: parse "use" with empty import list
Date: Wed, 25 Mar 2009 08:37:18 +1100
To: bug-Module-ExtractUse [...] rt.cpan.org
From: Kevin Ryde <user42 [...] zip.com.au>
With Module::ExtractUse 0.23 and the debian perl 5.10.0 a program use strict; use warnings; use Module::ExtractUse; my $p = Module::ExtractUse->new; my $code = 'use POSIX ();'; $p->extract_use (\$code); print $p->array; prints nothing, where I hoped it would pick out "POSIX" from the use (an empty list like that suppresses importing of course). -- "Learning more and more about less and less."
Fixed in 0.31. Thanks. On Wed Mar 25 06:38:16 2009, user42@zip.com.au wrote: Show quoted text
> With Module::ExtractUse 0.23 and the debian perl 5.10.0 a program > > use strict; > use warnings; > use Module::ExtractUse; > my $p = Module::ExtractUse->new; > my $code = 'use POSIX ();'; > $p->extract_use (\$code); > print $p->array; > > prints nothing, where I hoped it would pick out "POSIX" from the use > (an empty list like that suppresses importing of course). >