Son::new doesn't return the blessed object. Try:
sub new { *{'Father::alert'} = sub { print 'son' . $/; }; bless {}, Son; }
In reply to Re: Why mock doesn't work in this case?
by tobyink
in thread Why mock doesn't work in this case?
by PerlOnTheWay
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |