$myDB->{method1}->();
Note that you are adding these methods per *instance*, not to the whole class -- this is a technique used in prototype OOP. If you wanted to dynamically augment your class, the hash you need to edit is actually the BigDB package's symbol table.
In reply to Re: Dynamically Creating (and Calling) Object Methods
by gaal
in thread Dynamically Creating (and Calling) Object Methods
by zaven
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |