Skip Menu |

This queue is for tickets about the Class-Autouse CPAN distribution.

Report information
The Basics
Id: 13786
Status: resolved
Worked: 5 min
Priority: 0/
Queue: Class-Autouse

People
Owner: Nobody in particular
Requestors:
Cc:
AdminCc:

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



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.