Skip Menu |

This queue is for tickets about the version CPAN distribution.

Report information
The Basics
Id: 47750
Status: resolved
Priority: 0/
Queue: version

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

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



Subject: 'version' set unknown stat on uninitilized glob (?)
Date: Fri, 10 Jul 2009 04:01:43 +0900
To: bug-version [...] rt.cpan.org
From: kpee <kpee.cpan [...] gmail.com>
Hi, John. This is a little-rare-case bug(?), but it is surely happened. [[ CASE A ]] Magical glob '*_' returns unknown stat when it is not initialized. A comprehensible example, $ perl -we 'print stat *_,$/' stat() on unopened filehandle _ at -e line 1. but if type below $ perl -w -Mversion -e 'print stat *_,$/' 303306010030123532023712204174641220417464 Returned value is always the same, but it is different according to the platform. It happens on both of Linux and Windows. See 'TEST ENVIRONMENT' at the end of this report. [[ CASE B ]] On Windows, every uninitialized glob (e.g. *F) returns unknown stat. @perl -w -e "print stat *F,$/" Name "main::F" used only once: possible typo at -e line 1. stat() on unopened filehandle F at -e line 1. @perl -w -Mversion -e "print stat *F,$/" Name "main::F" used only once: possible typo at -e line 1. 303320610030120685930212068593021206859302 Returned value is the same as the case of *_. And, @perl -w -Mversion -e "stat 'foo';print stat *F,$/" Name "main::F" used only once: possible typo at -e line 1. 20332061002516124713303112471507961247133031 returns stat of 'foo'. [[ TEST ENVIRONMENT ]] * version-0.76, perl-v5.10.0 built for MSWin32-x86-multi-thread (ActivePerl), Windows XP SP3 * version-0.76, perl- v5.8.8 built for i486-linux-gnu-thread-multi, Linux ubuntu-vm 2.6.24-18-generic(on vmware-player for Windows) [[ NOTICE ]] * Module 'Encode-2.33' also has the same bug. -- kpee <kpee.cpan@gmail.com>
Subject: Re: [rt.cpan.org #47750] 'version' set unknown stat on uninitilized glob (?)
Date: Thu, 09 Jul 2009 20:34:35 -0400
To: bug-version [...] rt.cpan.org
From: John Peacock <john.peacock [...] havurah-software.org>
kpee via RT wrote: Show quoted text
> [[ NOTICE ]] > * Module 'Encode-2.33' also has the same bug.
Do you mean that simply loading Encode-2.33 alone will also cause the same behavior? If so, I suspect that it is locale that is causing this to happen and not version or Encode... John
This is not specific to version, since it can also be observed using I18N::Langinfo (core Perl since 5.7.something). Closing. If you want to pursue this, you should post your observation to p5p, where if you are lucky, someone will recognize it immediately. John