my $temp_obj = "Foo::$type"->new(); # or, a more verbose version: no strict 'refs'; # because this isn't very strict my $temp_obj = &{"Foo::${type}::new"}("Foo::$type");
In reply to Re: Scalar in Method Call
by Fastolfe
in thread Scalar in Method Call
by ichimunki
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |