develooper Front page | perl.perl5.porters | Postings from September 2009

[perl #69452] UNIVERSAL::VERSION method docs fail to state acceptable values of $VERSION

Thread Next
From:
Richard Soderberg
Date:
September 29, 2009 02:26
Subject:
[perl #69452] UNIVERSAL::VERSION method docs fail to state acceptable values of $VERSION
Message ID:
rt-3.6.HEAD-21832-1254171266-1713.69452-75-0@perl.org
# New Ticket Created by  Richard Soderberg 
# Please include the string:  [perl #69452]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=69452 >


This is a bug report for perl from rs@topsy.com
generated with the help of perlbug 1.39 running under perl 5.10.1.


-----------------------------------------------------------------
[Please describe your issue here]

UNIVERSAL 1.05 says that:

  C<VERSION> will return the value of the variable C<$VERSION> in the
package the object is blessed into.

However, this is not true for all values of $VERSION:

  #!/usr/bin/perl -E
  $Foo::VERSION = "3.210"; say Foo->VERSION;
  $Bar::VERSION = "3.210pre"; say Bar->VERSION;'

  __DATA__
  3.210
  0

The documentation has no mention of this behavior.

 - R.

[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=library
    severity=low
    module=UNIVERSAL
---
Site configuration information for perl 5.10.1:

Configured by rs at Tue Sep 15 12:53:19 PDT 2009.

Summary of my perl5 (revision 5 version 10 subversion 1) configuration:

  Platform:
    osname=linux, osvers=2.6.18-92.1.22.el5, archname=x86_64-linux
    uname='linux hostname 2.6.18-92.1.22.el5 #1 smp tue dec 16
11:57:43 est 2008 x86_64 x86_64 x86_64 gnulinux '
    config_args='-des -Duseshrplib -Duselargefiles -Duse64bitint
-Duse64bitall -Doptimize=-march=core2 -O2 -g3 -Wall -pipe
-Dprefix=/opt/perl -Dvendorprefix=/opt/perl'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=undef, usemultiplicity=undef
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
  Linker and Libraries:
  Dynamic Linking:

Locally applied patches:


---
@INC for perl 5.10.1:
    /opt/perl/lib/5.10.1/x86_64-linux
    /opt/perl/lib/5.10.1
    /opt/perl/lib/site_perl/5.10.1/x86_64-linux
    /opt/perl/lib/site_perl/5.10.1
    /opt/perl/lib/vendor_perl/5.10.1/x86_64-linux
    /opt/perl/lib/vendor_perl/5.10.1
    /opt/perl/lib/vendor_perl
    .

---
Environment for perl 5.10.1:
    HOME=/home/rs
    LANG=en_US.UTF-8
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/usr/kerberos/bin:/usr/lib64/ccache:/usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin:/home/rs/bin
    PERL_BADLANG (unset)
    SHELL=/bin/bash


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About