in reply to How to add functions to an existing module?
package MyApp::Example::Model; ####; { package Example::Model; sub mymethod1 { ####; } sub mymethod2 { ####; } } ####; 1;
Note that this will add the methods to all Example::Model objects.
There is surely a better way of doing what you really want to do.
|
|---|