in reply to Export all subs from a module

I would recommend a search for EXPORTER on the site.

<a href="http://www.graq.co.uk">Graq</a>

Replies are listed 'Best First'.
Re: Re: Export all subs from a module
by andye (Curate) on Oct 31, 2001 at 16:04 UTC
    Done that, and some other searches elsewhere, before I posted. Of course, it's entirely possible (likely, even!) that I've missed the crucial section, in which case could you point me towards it.

    The problem isn't that I don't know how to export subs, it's that I want to export all the subs automatically, e.g. @EXPORT = All_the_subs() not @EXPORT = qw(long tedious list)

    andy. Going to the dentist now. Preemptive Ow!

      Apologies, I did not spot that detail in your original post.

      I like your question (probably because the answer does not spring to mind). I have seen many modules with HUGE lists of functions in EXPORT_OK, but none with something clever.

      Off the top of my head, the possibility that springs to mind is a hash of subrefs, but that kind of defeats the point of the exercise.

      /me scratches head and goes looking

      <a href="http://www.graq.co.uk">Graq</a>