On Wed, 9 Jun 2004, Tim Bunce wrote:

since perl is a script to call the function "crunchy"
I can do

$t="crunchy";

&$t;

Typical use could be

foreach $f (keys(%AssocArray))
{
        $format="format_".$f;
        $html .= &$format($Assoc_Array{$f})
}
(there may be a problem is the parenthesis, i do not remember the exact
syntax)

and

$compagny ="MicroSoft";
$$compagny{"Status")=666;

works too.


Well i want use more object oriented perl.

Assume that  i want to call

$t->method

where $t is an object obtained doing some new or some affectation.

How do i perform such a dynamic call ?

&$t->method does not work

and i don't know where to put parenthesis or brackets.



Reply via email to