in reply to Re: Re: Automatically export all subs in a module
in thread Automatically export all subs in a module
Unfortunately you need to switch to no strict 'refs' in order to use it, which is a shame, but there you are (unless someone else can do it strictly).@EXPORT = grep {defined *{${__PACKAGE__.'::'}{$_}}{CODE} } keys %{__PA +CKAGE__.'::'} ;
andy.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Automatically export all subs in a module
by runrig (Abbot) on Dec 20, 2001 at 00:12 UTC | |
by andye (Curate) on Dec 20, 2001 at 00:14 UTC | |
|
Re: Re: Re: Re: Automatically export all subs in a module
by George_Sherston (Vicar) on Dec 20, 2001 at 20:44 UTC |