http://www.perlmonks.org?node_id=933040


in reply to Making a new object of an undecided class with Moose

Use  my $foo = 'Any::Thing::You::Want'; $foo->new( 1,2,3 );

See Modern Perl: the free book , perlootut.pod