in reply to Exporter::Dream

While the module itself seems good, the underscore option prefix does seem rather unruly. Since function names can't start with a dash, and yet hash elements can, maybe you could use that to indicate options. CGI uses this technique, for example.
use MyModule::HTTP -prefix => 'foo', qw(get post), -prefix => 'bar', qw(get head);
This also makes them feel, in my opinion, more switch like, comparable to command-line options. Underscores seem too unconventional.

Replies are listed 'Best First'.
Re: Re: Exporter::Dream
by Juerd (Abbot) on Jan 08, 2003 at 00:07 UTC

    I'm sorry. I just hate abusing unary minus for that. I try to avoid modules that use it. You can't safely export subs that start with an underscore now, but I like to think of that as a feature: subs that start with underscore are supposed to be private. And if you want to export a symbol called _prefix, you're simply out of luck :).

    - Yes, I reinvent wheels.
    - Spam: Visit eurotraQ.