Subject: | Handle import strings |
Some class modules take import strings. For example "use CGI qw(-debug)". It would be nice if Class::Autouse supported this.
Class::Autouse->autouse_import(CGI => qw(-debug));
Autouse would remember the import string and use it when autousing the module.
eval {
CORE::require $class;
if( exists $Imports{$class} ) {
$class->import(@{$Imports{$class}});
}
}
This feature allows rt.cpan.org 13784.