Skip Menu |

This queue is for tickets about the XML-Twig CPAN distribution.

Report information
The Basics
Id: 22551
Status: open
Priority: 0/
Queue: XML-Twig

People
Owner: Nobody in particular
Requestors: ddascalescu [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Cwd functions redefined if all warnings enabled
Date: Tue, 24 Oct 2006 20:37:54 -0700
To: bug-XML-Twig [...] rt.cpan.org
From: "Dan Dascalescu" <ddascalescu [...] gmail.com>
On my machine with perl, v5.8.8 built for MSWin32-x86-multi-thread , perl -W -e " use XML::Twig; " complains that: Subroutine Cwd::fastcwd redefined at C:/Perl/lib/Cwd.pm line 699. Subroutine Cwd::getcwd redefined at C:/Perl/lib/Cwd.pm line 699. Subroutine Cwd::abs_path redefined at C:/Perl/lib/Cwd.pm line 699. HTH, Dan Dascalescu
Subject: Re: [rt.cpan.org #22551] Cwd functions redefined if all warnings enabled
Date: Wed, 25 Oct 2006 15:36:04 +0200
To: bug-XML-Twig [...] rt.cpan.org
From: Michel Rodriguez <mirod [...] xmltwig.com>
ddascalescu@gmail.com via RT wrote: Show quoted text
> Tue Oct 24 23:38:07 2006: Request 22551 was acted upon. > Transaction: Ticket created by ddascalescu@gmail.com > Queue: XML-Twig > Subject: Cwd functions redefined if all warnings enabled > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: ddascalescu@gmail.com > Status: new > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=22551 > > > > On my machine with perl, v5.8.8 built for MSWin32-x86-multi-thread , > > perl -W -e " use XML::Twig; " > > complains that: > > Subroutine Cwd::fastcwd redefined at C:/Perl/lib/Cwd.pm line 699. > Subroutine Cwd::getcwd redefined at C:/Perl/lib/Cwd.pm line 699. > Subroutine Cwd::abs_path redefined at C:/Perl/lib/Cwd.pm line 699.
Hum... I don't quite understand how a module can be loaded twice. I don't get that message, but I don't have a Windows install around here either. Would adding a "use diagnostics" give more info about where could Cwd be imported twice? Thanks -- mirod
Subject: Re: [rt.cpan.org #22551] Cwd functions redefined if all warnings enabled
Date: Wed, 25 Oct 2006 11:09:40 -0700
To: bug-XML-Twig [...] rt.cpan.org
From: "Dan Dascalescu" <ddascalescu [...] gmail.com>
Yep, I didn't quite get that either. Also having in mind that XML::Twig doesn't use Cwd (at least not directly, and has no reason to). Here's what I get with "use diagnostics": Subroutine Cwd::fastcwd redefined at C:/Perl/lib/Cwd.pm line 699 (#1) (W redefine) You redefined a subroutine. To suppress this warning, say { no warnings 'redefine'; eval "sub name { ... }"; } Subroutine Cwd::getcwd redefined at C:/Perl/lib/Cwd.pm line 699 (#1) Subroutine Cwd::abs_path redefined at C:/Perl/lib/Cwd.pm line 699 (#1) HTH, Dan On 10/25/06, mirod@xmltwig.com via RT <bug-XML-Twig@rt.cpan.org> wrote: Show quoted text
> > <URL: http://rt.cpan.org/Ticket/Display.html?id=22551 > > > ddascalescu@gmail.com via RT wrote:
> > Tue Oct 24 23:38:07 2006: Request 22551 was acted upon. > > Transaction: Ticket created by ddascalescu@gmail.com > > Queue: XML-Twig > > Subject: Cwd functions redefined if all warnings enabled > > Broken in: (no value) > > Severity: (no value) > > Owner: Nobody > > Requestors: ddascalescu@gmail.com > > Status: new > > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=22551 > > > > > > > On my machine with perl, v5.8.8 built for MSWin32-x86-multi-thread , > > > > perl -W -e " use XML::Twig; " > > > > complains that: > > > > Subroutine Cwd::fastcwd redefined at C:/Perl/lib/Cwd.pm line 699. > > Subroutine Cwd::getcwd redefined at C:/Perl/lib/Cwd.pm line 699. > > Subroutine Cwd::abs_path redefined at C:/Perl/lib/Cwd.pm line 699.
> > Hum... > > I don't quite understand how a module can be loaded twice. I don't get > that message, but I don't have a Windows install around here either. > > Would adding a "use diagnostics" give more info about where could Cwd be > imported twice? > > Thanks > > -- > mirod