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.
In reply to Re^2: How to alias a whole namespace to another namespace (in this case main::)
by aufflick
in thread How to alias a whole namespace to another namespace (in this case main::)
by aufflick
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |