If i do my $b=$bar."_edit" and $o->$b() it works, but I don't wanna make temp vars like that.But that's about the only way to do an indirect method call. You can horse around with UNIVERSAL::can to get at it a bit differently, but you're still gonna end up with either a temporary variable or a value in passing.
Symbolic method calls are rare enough that it was deemed reasonable to restrict them to simple scalars.
-- Randal L. Schwartz, Perl hacker
In reply to Re: object ref syntax
by merlyn
in thread object ref syntax
by jhanna
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |