in reply to Scalar in Method Call
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");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Scalar in Method Call
by Dominus (Parson) on Dec 22, 2000 at 21:57 UTC | |
by Fastolfe (Vicar) on Dec 22, 2000 at 22:13 UTC | |
|
Re: Re: Scalar in Method Call
by ichimunki (Priest) on Dec 22, 2000 at 09:41 UTC |