in reply to Re: "Overriding" functions?
in thread "Overriding" functions?

Under -w, this gives a redefinition warning. extras.pl should have
use warnings; no warnings "redefine";
(or muck about with $^W for the hardcore anti-warnings.pm people).

Replies are listed 'Best First'.
Re^3: "Overriding" functions?
by blazar (Canon) on Jul 04, 2007 at 21:26 UTC
    use warnings; no warnings "redefine";

    Just to be on the safe side,

    { no warnings "redefine"; sub that_must_be_redefined { ... } }

    If wanting to be very very picky...

    { my $redefined = sub { ... } no warnings "redefine"; *that_must_be_redefined = $redefined; }