I have a package that I just created, and I have an “old mode” that basically makes it work the way it worked before: import everything into the current namespace. One of the nice things about being a package is that we no longer need to do this. Anyway, I would like to make it so that whenever someone:
use Foo qw(:oldmode);
I warn you that this is deprecated and that they should either import only what they need, or simply access the functions using Foo-> fun ();
Any ideas on how to do this?
import perl warnings packages
Frew schmidt
source share