Skip Menu |

This queue is for tickets about the Perl-Dist-Strawberry CPAN distribution.

Report information
The Basics
Id: 107270
Status: open
Priority: 0/
Queue: Perl-Dist-Strawberry

People
Owner: Nobody in particular
Requestors: Austin_Kenny [...] ibi.com
Cc: CHORNY [...] cpan.org
AdminCc:

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



Subject: Possible Bug Strawberry Perl (perl 5, version 22, subversion 0 (v5.22.0) built for MSWin32-x64-multi-thread).
Date: Wed, 23 Sep 2015 15:21:14 -0400
To: "bug-Perl-Dist-Strawberry [...] rt.cpan.org" <bug-Perl-Dist-Strawberry [...] rt.cpan.org>
From: "Kenny, Austin" <Austin_Kenny [...] ibi.com>
Running on: Microsoft Windows Server 2012 R2 Standard The server is running Strawberry Perl(perl 5, version 22, subversion 0 (v5.22.0) built for MSWin32-x64-multi-thread). require File::stat; File::stat::stat("filename"); Throws this error: ,Undefined subroutine &File::stat::stat called ... When I removed 'File::Stat' from its directory (C:\Strawberry\perl\lib\File\Stat.pm), the problem disappeared. Somehow File::Stat was being called instead of 'File::stat' ?? That's just my guess. Thanks. Austin Kenny
On Wed Sep 23 15:21:31 2015, Austin_Kenny@ibi.com wrote: Show quoted text
> When I removed 'File::Stat' from its directory > (C:\Strawberry\perl\lib\File\Stat.pm), the problem disappeared.
Are you sure that you did remove it from perl\lib\ and not perl\site\lib\ ? -- Alexandr Ciornii, http://chorny.net
Subject: RE: [rt.cpan.org #107270] Possible Bug Strawberry Perl (perl 5, version 22, subversion 0 (v5.22.0) built for MSWin32-x64-multi-thread).
Date: Wed, 23 Sep 2015 18:15:02 -0400
To: "bug-Perl-Dist-Strawberry [...] rt.cpan.org" <bug-Perl-Dist-Strawberry [...] rt.cpan.org>
From: "Kenny, Austin" <Austin_Kenny [...] ibi.com>
My mistake. It is still in perl\site\lib. I removed it from " C:\Strawberry\perl\site\lib\". I located it using 'perldoc -l File::Stat'. Thanks. Show quoted text
-----Original Message----- From: Alexandr Ciornii via RT [mailto:bug-Perl-Dist-Strawberry@rt.cpan.org] Sent: Wednesday, September 23, 2015 6:07 PM To: Kenny, Austin Subject: [rt.cpan.org #107270] Possible Bug Strawberry Perl (perl 5, version 22, subversion 0 (v5.22.0) built for MSWin32-x64-multi-thread). <URL: https://rt.cpan.org/Ticket/Display.html?id=107270 > On Wed Sep 23 15:21:31 2015, Austin_Kenny@ibi.com wrote:
> When I removed 'File::Stat' from its directory > (C:\Strawberry\perl\lib\File\Stat.pm), the problem disappeared.
Are you sure that you did remove it from perl\lib\ and not perl\site\lib\ ? -- Alexandr Ciornii, http://chorny.net
On Wed Sep 23 18:15:19 2015, Austin_Kenny@ibi.com wrote: Show quoted text
> My mistake. > It is still in perl\site\lib. I removed it from " > C:\Strawberry\perl\site\lib\". I located it using 'perldoc -l > File::Stat'.
This is known problem. Core perl and Strawberry have File::stat and there is File::Stat on CPAN. Modules from perl\site\lib (installed from CPAN) have priority over perl\lib (core perl). https://rt.cpan.org/Ticket/Display.html?id=83208 -- Alexandr Ciornii, http://chorny.net
Subject: RE: [rt.cpan.org #107270] Possible Bug Strawberry Perl (perl 5, version 22, subversion 0 (v5.22.0) built for MSWin32-x64-multi-thread).
Date: Thu, 24 Sep 2015 13:04:05 -0400
To: "bug-Perl-Dist-Strawberry [...] rt.cpan.org" <bug-Perl-Dist-Strawberry [...] rt.cpan.org>
From: "Kenny, Austin" <Austin_Kenny [...] ibi.com>
Ok. I checked another box with Strawberry Perl v5.18 installed. It doesn't have 'Perl::Stat' installed in the site\lib, only in the perl\lib and I don't get the error there. So, some module that I installed must have installed File::Stat as a dependency on the site\lib, and that's what caused the problem. I guess it boils down to unfortunate Module naming and Windows case insensitivity. Thanks for the info about the order of priority with the Perl libraries. I can work around the issue now. Austin. Show quoted text
-----Original Message----- From: Alexandr Ciornii via RT [mailto:bug-Perl-Dist-Strawberry@rt.cpan.org] Sent: Thursday, September 24, 2015 12:05 PM To: Kenny, Austin Subject: [rt.cpan.org #107270] Possible Bug Strawberry Perl (perl 5, version 22, subversion 0 (v5.22.0) built for MSWin32-x64-multi-thread). <URL: https://rt.cpan.org/Ticket/Display.html?id=107270 > On Wed Sep 23 18:15:19 2015, Austin_Kenny@ibi.com wrote:
> My mistake. > It is still in perl\site\lib. I removed it from " > C:\Strawberry\perl\site\lib\". I located it using 'perldoc -l > File::Stat'.
This is known problem. Core perl and Strawberry have File::stat and there is File::Stat on CPAN. Modules from perl\site\lib (installed from CPAN) have priority over perl\lib (core perl). https://rt.cpan.org/Ticket/Display.html?id=83208 -- Alexandr Ciornii, http://chorny.net