http://qs1969.pair.com?node_id=771393


in reply to Dynamically Changing Packages w/out Eval

I think this
local *{$package}::__ANON__ = sub { ... };

Replies are listed 'Best First'.
Re^2: Dynamically Changing Packages w/out Eval
by Anonymous Monk on Jun 14, 2009 at 12:05 UTC
    Thats the wrong syntax
    local *{$package."::__ANON__"} = sub { ... };
    Much easier to use Sub::Install