perl5ever has asked for the wisdom of the Perl Monks concerning the following question:
Is something similar possible for an entire package, i.e. renaming a package?sub foo { ... } ... *foo = sub { ... }; # install new version of sub foo
package Foo; sub bar { ... } package main; *::NewFoo = *::Foo; # or something like this NewFoo::bar(); # calls Foo::bar();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: dynamically renaming a package?
by almut (Canon) on Feb 03, 2010 at 15:59 UTC |