in reply to How to alias a whole namespace to another namespace (in this case main::)
no strict refs; *{$target_package . "::"} = *{$source_package . "::"};
For example:
*{"main::"} = *{"foo::"};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to alias a whole namespace to another namespace (in this case main::)
by aufflick (Deacon) on Nov 15, 2004 at 05:18 UTC | |
by simonm (Vicar) on Nov 15, 2004 at 15:54 UTC |