in reply to Re^2: caller package and eval
in thread caller package and eval

I don't understand how isa fits in here. If you mean to do the following, it seems useless to me.
package User; sub find { my ($class, $query) = @_; die("Bad class") if !$class->isa('User'); ... }

Someone would have to put effort into making that condition fail.

Replies are listed 'Best First'.
Re^4: caller package and eval
by josh803316 (Beadle) on Sep 02, 2009 at 06:10 UTC
    Yeah, I agree, it seems to be overkill and not really necessary. It seems I don't need the isa test at all, although I was trying to be protective inside my parent object. Thank you very much for your helpful responses.