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();
In reply to dynamically renaming a package? by perl5ever
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |