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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to alias a whole namespace to another namespace (in this case main::)
by simonm (Vicar) on Nov 15, 2004 at 15:54 UTC |