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

Re: Exporter and subroutine circular dependencies between modules

Thread Previous | Thread Next
From:
Shawn H Corey
Date:
March 13, 2022 23:12
Subject:
Re: Exporter and subroutine circular dependencies between modules
Message ID:
1c0b502f-6acd-ef30-6648-aacbf1a4e7a5@gmail.com
On 2022-03-13 18:44, Diab Jerius wrote:
>
>
> I prefer yet another fashion (everything is driven by what's in 
> %EXPORT_TAGS), but back to the point of the OP's problem, this doesn't 
> initialize @EXPORT until runtime, so I think will have the same issue 
> (I'm away from keyboard at the moment).

Each module has its own runtime. That is, a module is loaded, compiled 
and run; all before the main program. In other words, when the module 
returns from its `use` statement, it has already run.

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