http://www.perlmonks.org?node_id=407774


in reply to Re: How to alias a whole namespace to another namespace (in this case main::)
in thread How to alias a whole namespace to another namespace (in this case main::)

sub foo::bar {print "bar\n"} *{"main::"} = *{"foo::"}; bar();

Results in:

Modification of a read-only value attempted at - line 2.

And I want to add to main, not completely replace it.