I can call a method on an object using the following:

$objref->func()

However, if I try to call this using a symbolic reference:

my $func_name = "$objref->func";
&{$func_name)();

then I get the following error:

"Undefined subroutine &main::$objref->func called.."

The problem is that the perl compiler seems to be appending a "main::"
qualifer to the beginning of the function name. How can I tell it to
just call the function as provided in the $func_name variable without
appending "main::" ?

Anyone?

Thanks 
Tom



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to