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."