go ahead... be a heretic | |
PerlMonks |
(tye)Re: Passing parameters to a module's import functionby tye (Sage) |
on Feb 12, 2001 at 08:46 UTC ( [id://57838]=note: print w/replies, xml ) | Need Help?? |
Um, tilly, in the sample usage:
are you suggesting that having Exporter.pm know about not just "foo" and "bar" but also "1" and "two" and all other possible parameter values and then having it either export them or report them as failing one at a time is somehow useful? (And your third option seems to have little to do with what was being asked.) (: No, Exporter.pm does not provide any way of dealing with such options. You can look at Win32::TieRegistry for an example of how to parse such options while still supporting standard exporting (and non-standard exporting). But you'll probably want to ignore most of the code in Win32::TieRegistry::import as I doubt you'll want to support the strange exporting that is supported there. You might have more luck looking at Win32::TieRegistry::SetOptions. Update: I hate this font. () and {} are nearly identical. The stuff I was talking about deals with this:
kind of stuff. ): - tye (but my friends call me "Tye")
In Section
Seekers of Perl Wisdom
|
|