Just a couple of things. According to the docs for use:
[use] is exactly equivalent toIn other words, at least according to the docs, if one wants to replicate at runtime what use does, it should be Foo->import, not Foo::import.except that Module must be a bareword.BEGIN { require Module; import Module LIST; }
The second point is only a clarification of a potentially misleading detail. The routine Bar::old in your example can be called even if Bar::new has not been called first. In other words, it is not the case that executing Bar::new somehow defines Bar::old. (I'm not saying that you wrote or believe this, but someone reading your post may incorrectly draw this conclusion.)
the lowliest monk
In reply to Re^3: use depending on environment
by tlm
in thread use depending on environment
by Andre_br
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |