Re: Exporter and subroutine circular dependencies between modules

[email protected] (David Christensen) Sun, 13 Mar 2022 19:16:54 -0700
Newsgroups perl.module-authors
Message-ID <[email protected]>
On 3/13/22 15:44, Diab Jerius wrote:
> On Sun, Mar 13, 2022, 18:19 Shawn H Corey <[email protected]> wrote:

>> use  Exporter      qw( import );
>> our @EXPORT      = qw( foo );
>> our @EXPORT_OK   = qw( );
>> our %EXPORT_TAGS = (
>>      all  => [ @EXPORT, @EXPORT_OK ],
>> );
>>
>> This automatically creates a tag for `:all`.
>>
> I prefer yet another fashion (everything is driven by what's in
> %EXPORT_TAGS),


Yes, sometimes that makes more sense.


David