in reply to Overriding CORE::GLOBAL::bless

You may want to use subs pragma for overriding:
use subs qw(bless);
Update: In fact you have to use module or subs pragma in order ro override in CORE::GLOBAL.


Replies are listed 'Best First'.
Re^2: Overriding CORE::GLOBAL::bless
by rinceWind (Monsignor) on Aug 19, 2005 at 13:03 UTC

    Added use subs qw(bless); this has made no difference whatsoever. The track_blessings sub is performing the typeglob assignment to CORE::GLOBAL::bless, but Devel::Leak::Object::bless is not getting called.

    --

    Oh Lord, won’t you burn me a Knoppix CD ?
    My friends all rate Windows, I must disagree.
    Your powers of persuasion will set them all free,
    So oh Lord, won’t you burn me a Knoppix CD ?
    (Missquoting Janis Joplin)