A technique that I've used for flags on the use line, but that doesn't work for pair options, is to use Exporter's @EXPORT_FAIL feature. Basically, if Exporter sees a value that is in @EXPORT_FAIL and not in either @EXPORT or @EXPORT_OK, it dispatches a call to $class->export_fail() to deal with the value.
Alternatively, you could switch to the Exporter::VA module, which has several features geared exactly towards this sort of task.
bbfu
Black flowers blossom
Fearless on my breath
In reply to Re: "use" modifiers
by bbfu
in thread "use" modifiers
by pbeckingham
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |