Re: Exporter and subroutine circular dependencies between modules
[email protected] (Shawn H Corey) Sun, 13 Mar 2022 19:12:32 -0400
| Newsgroups | perl.module-authors |
|---|---|
| Message-ID | <[email protected]> |
--------------dw0OLEylH00WdVx5U9WzkrUS
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
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.
--------------dw0OLEylH00WdVx5U9WzkrUS
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">On 2022-03-13 18:44, Diab Jerius wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CADpyd5CGZYt=O0fNCg9xL3ph687F3BD+u7LUQztqDVNwnC61mA@mail.gmail.com">
<div>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<p><br>
</p>
</div>
</blockquote>
</div>
</div>
<div dir="auto">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).</div>
</blockquote>
<p>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.<br>
</p>
</body>
</html>
--------------dw0OLEylH00WdVx5U9WzkrUS--