use warnings; use strict; use FilterLoad Foo => 'Deconstifier', 'AnyEvent::DNS' => 'Deconstifier'; sub Foo::ONE () { 444 } sub Foo::TWO { 555 } sub Foo::THREE () { 666 } Foo::go(); print "One=", Foo::ONE, ", Two=", Foo::TWO, ", Three=", Foo::THREE, "\n"; # I've manually edited the module to include a function # sub foobar { print "DOMAIN_PORT=", DOMAIN_PORT, "\n" } AnyEvent::DNS::foobar(); sub AnyEvent::DNS::DOMAIN_PORT () { 4242 } AnyEvent::DNS::foobar();