develooper Front page | perl.perl5.porters | Postings from October 2003

[perl #24189] Incorrect comment in perldoc strict

Thread Next
From:
perlbug-followup
Date:
October 12, 2003 15:19
Subject:
[perl #24189] Incorrect comment in perldoc strict
Message ID:
rt-24189-65954.9.50514379869631@rt.perl.org
# New Ticket Created by  Iain 'Spoon' Truskett 
# Please include the string:  [perl #24189]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=24189 >



This is a bug report for perl from spoon@cpan.org,
generated with the help of perlbug 1.34 running under perl v5.8.0.


-----------------------------------------------------------------
[Please enter your report here]

I believe the original wording is wrong. It's talking about the wrong
part of the expression, or is just talking about something that's not
there..


--- lib/strict.pm~	2003-10-12 18:52:02.000000000 +1000
+++ lib/strict.pm	2003-10-12 18:54:58.000000000 +1000
@@ -108,21 +108,21 @@
 
 =item C<strict subs>
 
 This disables the poetry optimization, generating a compile-time error if
 you try to use a bareword identifier that's not a subroutine, unless it
 is a simple identifier (no colons) and that it appears in curly braces or
 on the left hand side of the C<< => >> symbol.
 
     use strict 'subs';
     $SIG{PIPE} = Plumber;   	# blows up
-    $SIG{PIPE} = "Plumber"; 	# just fine: bareword in curlies always ok
+    $SIG{PIPE} = "Plumber"; 	# just fine: quoted string is always ok
     $SIG{PIPE} = \&Plumber; 	# preferred form
 
 =back
 
 See L<perlmodlib/Pragmatic Modules>.
 
 =head1 HISTORY
 
 C<strict 'subs'>, with Perl 5.6.1, erroneously permitted to use an unquoted
 compound identifier (e.g. C<Foo::Bar>) as a hash key (before C<< => >> or

[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=docs
    severity=low
---
Site configuration information for perl v5.8.0:

Configured by iain at Fri Jan 24 08:21:58 EST 2003.

Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
  Platform:
    osname=linux, osvers=2.4.18-14, archname=i686-linux
    uname='linux gytha.dellah.org 2.4.18-14 #1 wed sep 4 13:35:50 edt 2002 i686 i686 i386 gnulinux '
    config_args='-Dprefix=/opt/perl/5.8.0'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
    optimize='-O3',
    cppflags='-fno-strict-aliasing -I/usr/include/gdbm'
    ccversion='', gccversion='3.2 20020903 (Red Hat Linux 8.0 3.2-7)', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -lgdbm -ldb -ldl -lm -lc -lcrypt -lutil
    perllibs=-lnsl -ldl -lm -lc -lcrypt -lutil
    libc=/lib/libc-2.2.93.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.2.93'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'

Locally applied patches:
    

---
@INC for perl v5.8.0:
    /opt/perl/5.8.0/lib/5.8.0/i686-linux
    /opt/perl/5.8.0/lib/5.8.0
    /opt/perl/5.8.0/lib/site_perl/5.8.0/i686-linux
    /opt/perl/5.8.0/lib/site_perl/5.8.0
    /opt/perl/5.8.0/lib/site_perl
    .

---
Environment for perl v5.8.0:
    HOME=/home/iain
    LANG=en_AU.UTF-8
    LANGUAGE (unset)
    LD_LIBRARY_PATH=/home/iain/lib
    LOGDIR (unset)
    PATH=/home/iain/bin:/usr/X11R6/bin:/usr/local/bin:/usr/bin:/bin
    PERLDOC=-U
    PERLDOC_PAGER=less -+C -E
    PERL_BADLANG (unset)
    SHELL=zsh


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