It won't work the first time you do it because My::Package hasn't been loaded at the time that you try to get the list of keys in order to pass in to the 'use' line. The second time you use it, it might work, but it will still be a really bad idea.
use My::Package '/./';
See 'Advanced features' in Exporter.
- tye
In reply to Re: Is this safe to export and import functions this way? (:all)
by tye
in thread Is this safe to export and import functions this way?
by james28909
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |