J
Julien
Hi,
After discovering that I was accidentally using Class::Std version
0.0.2 instead of 0.0.8, I tried to specify the version in the use
clause to detect such problems in the future. However, perl 5.8.8
doesn't seem to handle this properly. Since I have already installed
Class::Std version 0.0.8, I will try to require version 0.0.9 to
illustrate the problem I had (even though 0.0.9 doesn't yet exist):
Under perl 5.8.6, the use clause works:
[user@host ~]$ perl --version
This is perl, v5.8.6 built for i386-linux-thread-multi
Copyright 1987-2004, Larry Wall
Perl may be copied only under the terms of either the Artistic License
or the
GNU General Public License, which may be found in the Perl 5 source
kit.
Complete documentation for Perl, including FAQ lists, should be found
on
this system using `man perl' or `perldoc perl'. If you have access to
the
Internet, point your browser at http://www.perl.org/, the Perl Home
Page.
[user@host ~]$ perl -e 'use Class::Std 0.000009;'
Class::Std version 0.000009 (v0.0.9) required--this is only version
0.000008 (v0.0.8) at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
.... so compilation failed, which is what I wanted/expected. However
under perl 5.8.8 :
[user@host ~]$ perl --version
This is perl, v5.8.8 built for i386-linux-thread-multi
Copyright 1987-2006, Larry Wall
Perl may be copied only under the terms of either the Artistic License
or the
GNU General Public License, which may be found in the Perl 5 source
kit.
Complete documentation for Perl, including FAQ lists, should be found
on
this system using "man perl" or "perldoc perl". If you have access to
the
Internet, point your browser at http://www.perl.org/, the Perl Home
Page.
[user@host ~]$ perl -e 'use Class::Std 0.000009;'
[user@host ~]$ perl -e 'use Class::Std 1.000009;'
Class::Std version 1.000009 (v1.0.9) required--this is only version
0.000008 (v0.0.8) at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
So we see that the installed Class::Std is version 0.0.8, but requiring
version 0.0.9 doesn't work (i.e. compilation did not fail). Requiring
v1.0.9 does lead to a compilation failure however.
Am I doing something wrong? It seems that leading 0's aren't being
handled properly under perl 5.8.8? Should I report this as a bug?
Thanks,
Julien
After discovering that I was accidentally using Class::Std version
0.0.2 instead of 0.0.8, I tried to specify the version in the use
clause to detect such problems in the future. However, perl 5.8.8
doesn't seem to handle this properly. Since I have already installed
Class::Std version 0.0.8, I will try to require version 0.0.9 to
illustrate the problem I had (even though 0.0.9 doesn't yet exist):
Under perl 5.8.6, the use clause works:
[user@host ~]$ perl --version
This is perl, v5.8.6 built for i386-linux-thread-multi
Copyright 1987-2004, Larry Wall
Perl may be copied only under the terms of either the Artistic License
or the
GNU General Public License, which may be found in the Perl 5 source
kit.
Complete documentation for Perl, including FAQ lists, should be found
on
this system using `man perl' or `perldoc perl'. If you have access to
the
Internet, point your browser at http://www.perl.org/, the Perl Home
Page.
[user@host ~]$ perl -e 'use Class::Std 0.000009;'
Class::Std version 0.000009 (v0.0.9) required--this is only version
0.000008 (v0.0.8) at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
.... so compilation failed, which is what I wanted/expected. However
under perl 5.8.8 :
[user@host ~]$ perl --version
This is perl, v5.8.8 built for i386-linux-thread-multi
Copyright 1987-2006, Larry Wall
Perl may be copied only under the terms of either the Artistic License
or the
GNU General Public License, which may be found in the Perl 5 source
kit.
Complete documentation for Perl, including FAQ lists, should be found
on
this system using "man perl" or "perldoc perl". If you have access to
the
Internet, point your browser at http://www.perl.org/, the Perl Home
Page.
[user@host ~]$ perl -e 'use Class::Std 0.000009;'
[user@host ~]$ perl -e 'use Class::Std 1.000009;'
Class::Std version 1.000009 (v1.0.9) required--this is only version
0.000008 (v0.0.8) at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
So we see that the installed Class::Std is version 0.0.8, but requiring
version 0.0.9 doesn't work (i.e. compilation did not fail). Requiring
v1.0.9 does lead to a compilation failure however.
Am I doing something wrong? It seems that leading 0's aren't being
handled properly under perl 5.8.8? Should I report this as a bug?
Thanks,
Julien