develooper Front page | perl.module-authors | Postings from March 2022

Re: Exporter and subroutine circular dependencies between modules

Thread Previous | Thread Next
From:
David Christensen
Date:
March 14, 2022 02:17
Subject:
Re: Exporter and subroutine circular dependencies between modules
Message ID:
6d21e276-741f-40bb-8f68-4af016a90e3c@holgerdanske.com
On 3/13/22 15:44, Diab Jerius wrote:
> On Sun, Mar 13, 2022, 18:19 Shawn H Corey <shawnhcorey@gmail.com> 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

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About