You can't do that. As use strict; does not know that you'll be declaring these variables later on at runtime, it raises an error. Either declare those variables in your main program, or load your plugin at compile time in a BEGIN block. See use.
In reply to Re^3: Exporting subs from package required in an eval
by Corion
in thread Exporting subs from package required in an eval
by cfreak
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |