in reply to Re: Export all subs from a module
in thread Export all subs from a module

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!

Replies are listed 'Best First'.
Re(3): Export all subs from a module
by graq (Curate) on Oct 31, 2001 at 16:46 UTC
    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>