Subject: | Sub-WrapPackages doesn't deal with inherited methods |
As discussed last week, here's a bug report for Sub::WrapPackages.
This module does not report on methods called on a package that exist in a superclass. For example (rough pseudo-code):
package Fruit;
sub eat { 'yum yum' }
package Banana;
use base 'Fruit';
sub peel { 'ready to eat' }
If I wrap the Banana package and call $banana->peel, Sub::WrapPackages logs this. But it won't log calls to $banana->eat.
Arguably this isn't a bug, but it would be useful behaviour, perhaps as an optional switch.
Tom