but for some reason inside my base class Object using method find the caller is not seen as the $class (User) it is seen as the Package (MyModule) that contains the eval. How would I change this to test for the correct Caller with caller->isa since the caller is not seen as $class.package MyModule; eval { # $class is User (which uses Object as base) # example $db_response = User->find($query) $db_response = $class->$method($query); };
In reply to caller package and eval by josh803316
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |