On Tue, May 01, 2012 at 08:43:54PM -0400, Caleb Cushing via RT wrote:
Show quoted text> this kind of goes along with my load_class_ok, but it'd be without the
> Test::Builder... not sure what the function would be called...
>
> my $class = ret_class( 'Class::Foo' ); # or exception
>
> this would also allow
>
> my $obj = ret_class('Class::Foo')->new();
I don't see why load_class itself couldn't just be modified to do this
(use_module from Module::Runtime does this, for instance). Having a
separate function for it seems odd.
-doy