in reply to Dynamically Creating (and Calling) Object Methods
$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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Dynamically Creating (and Calling) Object Methods
by zaven (Sexton) on Jan 07, 2007 at 09:16 UTC | |
by gaal (Parson) on Jan 07, 2007 at 10:03 UTC | |
by ysth (Canon) on Jan 07, 2007 at 17:57 UTC |