Re: Symbolic references and methods

2003-06-17 Thread Paul Johnson
Tom Gazzini said: > 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 c

Symbolic references and methods

2003-06-17 Thread Tom Gazzini
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