Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: "use" modifiers

by bbfu (Curate)
on May 12, 2004 at 16:15 UTC ( #352827=note: print w/ replies, xml ) Need Help??


in reply to "use" modifiers

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


Comment on Re: "use" modifiers
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://352827]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (15)
As of 2015-07-08 06:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (94 votes), past polls