This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: [Module::Build] Re: Cwd::cwd() bug??? on Cygwin
- From: Yitzchak Scott-Thoennes <sthoenna at efn dot org>
- To: "Randy W. Sims" <RandyS at ThePierianSpring dot org>
- Cc: Nick Ing-Simmons <nick dot ing-simmons at elixent dot com>, cygwin at cygwin dot com,perl5-porters at perl dot org, module-build-general at lists dot sourceforge dot net
- Date: Fri, 21 Nov 2003 13:21:00 -0800
- Subject: Re: [Module::Build] Re: Cwd::cwd() bug??? on Cygwin
- Organization: bs"d
- References: <3FAF853D.4000202@urth.org> <3FB00F47.10400@ThePierianSpring.org> <3FB0ACC8.6030402@urth.org> <3FB30BB3.10405@ThePierianSpring.org> <3FB50640.2010908@urth.org> <3FB55A73.5060806@ThePierianSpring.org> <3FB64CB5.4060802@ThePierianSpring.org> <3FBD695A.9020307@ThePierianSpring.org> <20031121110334.3098.7@llama.elixent.com> <3FBDF54F.2080808@ThePierianSpring.org>
On Fri, Nov 21, 2003 at 06:21:51AM -0500, "Randy W. Sims" <RandyS@ThePierianSpring.org> wrote:
> >>># test.pl
> >>>package MyModule;
> >>>use Module;
> >>>use base 'Module';
> >>>use Cwd;
> >
> >
> >If you moved that above the use Module line then when Module.pm
> >was compiled it would know Cwd::cwd was a function.
>
> Tried that too. Removing it does work though, but that's not a solution;
> it's not reasonable to tell clients that subclass your library not to
> 'use Cwd'.
If your class provides a method foo(), it is reasonable to tell those who
subclass that defining a sub foo or importing one from elsewhere
into their class will override the base method foo().
> I'm having a hard time grasping the order in which perl is interpreting
> this. What is desired is that $p->cwd() call Module::cwd() which should
> then forward the call to Cwd::cwd(). But no matter how I rearrange
> things I can't coax the behavior I want.
>
> I'm missing something simple here; I know it...
use Cwd (); ??
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/