[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OT: Circular Perl Modules? (fwd)



Greetings,

Thanks!  I later tried this on my own
with two modules requiring each other.
It worked just fine.  Once again, Perl
gives me functionality I didn't know that
I needed.  :)

--Chet


Sean \\The RIMBoy\\ wrote:
> FYI.
> 
> Sean...
> 
> ---------- Forwarded message ----------
> Date: Thu, 18 Sep 2003 18:19:58 -0500
> From: Allison Randal <al@nospamforyou.net>
> To: Sean The RIMBoy <sean@rimboy.com>
> Subject: Re: OT: Circular Perl Modules? (fwd)
> 
> That's why Exporter doesn't 'use Carp' at the top. See "Programming
> Perl" v.3  p.301
> 
>   "Just about the only reason to use 'require' is if you have two modules
>   that each need a function from the other. (And we're not sure that's a
>   good reason.)"
> 
> There's a bit of history behind this one:
> 
>   http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2000-10/msg00605.html
> 
> It you look at the version distributed with 5.8, you'll notice that the
> usage of Carp in Exporter has become more and more restricted over the
> years:
> 
>   http://search.cpan.org/src/JHI/perl-5.8.0/lib/Exporter.pm
> 
> Allison
> 
> 
>>---------- Forwarded message ----------
>>Date: Thu, 18 Sep 2003 07:42:09 -0500
>>From: Chet Langin <clangin@siu.edu>
>>Reply-To: silug-discuss@silug.org
>>To: silug-discuss@silug.org
>>Subject: OT: Circular Perl Modules?
>>
>>Greetings,
>>
>>I was studying some Perl code when I think that
>>I discovered some circular references among modules.
>>Specifically, Carp requires Exporter, but, in a
>>subroutine, Exporter requires Carp.  Am I seeing
>>this correctly?
>>
>>
>>,,Chet Langin,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
>><http://mypage.siu.edu/clangin> <clangin@siu.edu>
>>~~~Diagonally parked in a parallel universe ~~~~~
>>
>>
>>
>>-
>>To unsubscribe, send email to majordomo@silug.org with
>>"unsubscribe silug-discuss" in the body.
>>
> 
> 
> 
> -
> To unsubscribe, send email to majordomo@silug.org with
> "unsubscribe silug-discuss" in the body.
> 


-- 
,,Chet Langin,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
<http://mypage.siu.edu/clangin> <clangin@siu.edu>
~~~Diagonally parked in a parallel universe ~~~~~



-
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.