Perl / perl5

🐪 The Perl programming language
https://dev.perl.org/perl5/
Other
1.93k stars 551 forks source link

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

Open p5pRT opened 10 years ago

p5pRT commented 10 years ago

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

Searchable as RT121769$

p5pRT commented 10 years ago

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 commented 10 years ago

From @Leont

On Wed\, Apr 30\, 2014 at 2​:13 PM\, Steve Hay \perlbug\-followup@​perl\.orgwrote​:

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 commented 10 years ago

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

toddr commented 4 years ago

@bingos has this been fixed already by chance?