in reply to Re: Scalar in Method Call
in thread Scalar in Method Call

Says fastolfe:
no strict 'refs'; # because this isn't very strict my $temp_obj = "Foo::$type"->new();
The no strict 'refs' is unnecessary here, since you aren't dealing with references of any sort. The code will run just fine under strict refs.

Replies are listed 'Best First'.
Re: Re: Re: Scalar in Method Call
by Fastolfe (Vicar) on Dec 22, 2000 at 22:13 UTC
    You're right; it was the latter method that would have generated the error. I switched the order of the code around and neglected to move the 'no strict' with it.