[sf-perl] dynamic use command

Bill Moseley moseley at hank.org
Fri Apr 4 12:56:28 PDT 2008


If you don't mind mucking in UNIVERSAL there's

use UNIVERSAL::require;

$class->require || die $@;

my $foo = $class->new;

-- 
Bill Moseley
moseley at hank.org



More information about the SanFrancisco-pm mailing list