Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module::CoreList is inconsistent in its use of trailing zeros in perl version numbers #13786

Open
p5pRT opened this issue Apr 30, 2014 · 4 comments

Comments

@p5pRT
Copy link

p5pRT commented Apr 30, 2014

Migrated from rt.perl.org#121769 (status was 'open')

Searchable as RT121769$

@p5pRT
Copy link
Author

p5pRT commented Apr 30, 2014

From @steve-m-hay

Created by @steve-m-hay

The use of trailing zeros in perl version numbers (e.g. in the keys of %released
and %version) is inconsistent, leading to difficulty in looking anything up in
them.

For example, v5.9.0 appears as 5.009 but not 5.009000, whereas v5.10.0 appears
as 5.010000 but not 5.010 (or 5.01).

Some versions do have both forms, e.g. v5.19.0 appears as both 5.019
and 5.019000. It would probably be simplest if every version with
trailing zeros existed in both forms like that.

Perl Info

Flags:
    category=library
    severity=low
    module=Module::CoreList

Site configuration information for perl 5.19.12:

Configured by shay at Wed Apr 30 12:49:54 2014.

Summary of my perl5 (revision 5 version 19 subversion 12) configuration:
  Commit id: adc2d0c9de764f1cb892860df8ecc93dc8909b39
  Platform:
    osname=MSWin32, osvers=6.1, archname=MSWin32-x86-multi-thread
    uname=''
    config_args='undef'
    hint=recommended, useposix=true, d_sigaction=undef
    useithreads=define, usemultiplicity=define
    use64bitint=undef, use64bitall=undef, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cl', ccflags ='-nologo -GF -W3 -Od -MD -Zi -DDEBUGGING -DWIN32
-D_CONSOLE -DNO_STRICT -D_CRT_SECURE_NO_DEPRECATE
-D_CRT_NONSTDC_NO_DEPRECATE  -DPERL_TEXTMODE_SCRIPTS
-DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO',
    optimize='-Od -MD -Zi -DDEBUGGING',
    cppflags='-DWIN32'
    ccversion='16.00.40219.01', gccversion='', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=8
    ivtype='long', ivsize=4, nvtype='double', nvsize=8,
Off_t='__int64', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='link', ldflags ='-nologo -nodefaultlib -debug
-libpath:"C:\Dev\Temp\perl51912d\lib\CORE"  -machine:x86
"/manifestdependency:type='Win32'
name='Microsoft.Windows.Common-Controls' version='6.0.0.0'
processorArchitecture='*' publicKeyToken='6595b64144ccf1df'
language='*'"'
    libpth=\lib
    libs=oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib
comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib
netapi32.lib uuid.lib ws2_32.lib mpr.lib winmm.lib  version.lib
odbc32.lib odbccp32.lib comctl32.lib msvcrt.lib
    perllibs=oldnames.lib kernel32.lib user32.lib gdi32.lib
winspool.lib  comdlg32.lib advapi32.lib shell32.lib ole32.lib
oleaut32.lib  netapi32.lib uuid.lib ws2_32.lib mpr.lib winmm.lib
version.lib odbc32.lib odbccp32.lib comctl32.lib msvcrt.lib
    libc=msvcrt.lib, so=dll, useshrplib=true, libperl=perl519.lib
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib -debug
-libpath:"C:\Dev\Temp\perl51912d\lib\CORE"  -machine:x86
"/manifestdependency:type='Win32'
name='Microsoft.Windows.Common-Controls' version='6.0.0.0'
processorArchitecture='*' publicKeyToken='6595b64144ccf1df'
language='*'"'



@INC for perl 5.19.12:
    C:/Dev/Temp/perl51912d/site/lib
    C:/Dev/Temp/perl51912d/lib
    .


Environment for perl 5.19.12:
    HOME (unset)
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=C:\Windows\system32;C:\Windows;C:\Windows\system32\wbem;C:\Dev\Temp\perl51912d\bin
    PERL_BADLANG (unset)
    SHELL (unset)

@p5pRT
Copy link
Author

p5pRT commented May 2, 2014

From @Leont

On Wed, Apr 30, 2014 at 2​:13 PM, Steve Hay <perlbug-followup@​perl.org>wrote​:

The use of trailing zeros in perl version numbers (e.g. in the keys of
%released
and %version) is inconsistent, leading to difficulty in looking anything
up in
them.

For example, v5.9.0 appears as 5.009 but not 5.009000, whereas v5.10.0
appears
as 5.010000 but not 5.010 (or 5.01).

Some versions do have both forms, e.g. v5.19.0 appears as both 5.019
and 5.019000. It would probably be simplest if every version with
trailing zeros existed in both forms like that.

As far as I know, the source of this is that $] didn't use to have trailing
zeros, but since 5.10 it does. M​::CL must always be able to accept $]. I
don't think duplication is much of a good idea, but having some kind of
aliasing may be worthwhile.

Leon

@p5pRT
Copy link
Author

p5pRT commented May 2, 2014

The RT System itself - Status changed from 'new' to 'open'

@toddr
Copy link
Member

toddr commented Feb 13, 2020

@bingos has this been fixed already by chance?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants