nayakgi / perl-compiler

Automatically exported from code.google.com/p/perl-compiler
Other
0 stars 0 forks source link

version::is_strict should fail with q{01} #249

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

> perlcc -r -e 'use version; print version::is_strict(q{01}) ? 1 : 0'
1

What is the expected output? What do you see instead?

> perl -e 'use version; print version::is_strict(q{01}) ? 1 : 0'
0

Please use labels and text to provide additional information.

Original issue reported on code.google.com by nicolas....@gmail.com on 2 Dec 2013 at 11:36

GoogleCodeExporter commented 9 years ago
same problem with 

> perl -e 'use version; eval q/package withversion 01.0203;/; print 
version::is_strict("01.0203")'
> perlcc -r -e 'use version; eval q/package withversion 01.0203;/; print 
version::is_strict("01.0203")'
1

> perl -e 'use version; eval q/package withversion 01.0203{}/; print 
version::is_strict("01.0203")'
> perlcc -r -e 'use version; eval q/package withversion 01.0203{}/; print 
version::is_strict("01.0203")'
1

Original comment by nicolas....@gmail.com on 30 Jan 2014 at 11:41

GoogleCodeExporter commented 9 years ago
See also #177, where the loading order of version::vxs fixed version::is_strict

Original comment by reini.urban on 5 Feb 2014 at 6:07