develooper Front page | perl.perl5.porters | Postings from December 2015

[perl #126933] [PATCH] Fix use of == to compare strings inperlref.pod

Thread Previous
From:
Dagfinn Ilmari Mannsåker
Date:
December 15, 2015 23:48
Subject:
[perl #126933] [PATCH] Fix use of == to compare strings inperlref.pod
Message ID:
rt-4.0.18-29934-1450223283-209.126933-75-0@perl.org
# New Ticket Created by  Dagfinn Ilmari Mannsåker 
# Please include the string:  [perl #126933]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=126933 >


This is a bug report for perl from ilmari@ilmari.org,
generated with the help of perlbug 1.40 running under perl 5.23.4.


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

The examples for refaliasing were using == to compare strings.
The attached patch fixes this.

[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=docs
    severity=low
    Type=Patch
    PatchStatus=HasPatch
---
Site configuration information for perl 5.23.4:

Configured by ilmari at Tue Oct  6 23:14:52 BST 2015.

Summary of my perl5 (revision 5 version 23 subversion 4) configuration:
  Derived from: 30e379a544579363811d8b35c4fe4b5527859188
  Platform:
    osname=linux, osvers=4.1.0-1-amd64, archname=x86_64-linux
    uname='linux nurket 4.1.0-1-amd64 #1 smp debian 4.1.3-1 (2015-08-03) x86_64 gnulinux '
    config_args='-des -Dusedevel -Uversiononly'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=undef, usemultiplicity=undef
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2',
    optimize='-O2',
    cppflags='-fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include'
    ccversion='', gccversion='4.9.3', gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678, doublekind=3
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16, longdblkind=3
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -fstack-protector-strong -L/usr/local/lib'
    libpth=/usr/local/lib /usr/lib/gcc/x86_64-linux-gnu/4.9/include-fixed /usr/include/x86_64-linux-gnu /usr/lib /lib/x86_64-linux-gnu /lib/../lib /usr/lib/x86_64-linux-gnu /usr/lib/../lib /lib
    libs=-lpthread -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc -lgdbm_compat
    perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
    libc=libc-2.19.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.19'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
    cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib -fstack-protector-strong'

Locally applied patches:
    uncommitted-changes

---
@INC for perl 5.23.4:
    lib
    /home/ilmari/.perlbrew/libs/18.2@std/lib/perl5/x86_64-linux
    /home/ilmari/.perlbrew/libs/18.2@std/lib/perl5
    /usr/local/lib/perl5/site_perl/5.23.4/x86_64-linux
    /usr/local/lib/perl5/site_perl/5.23.4
    /usr/local/lib/perl5/5.23.4/x86_64-linux
    /usr/local/lib/perl5/5.23.4
    .

---
Environment for perl 5.23.4:
    HOME=/home/ilmari
    LANG=en_GB.utf8
    LANGUAGE=en_GB:en
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/home/ilmari/.perlbrew/libs/18.2@std/bin:/home/ilmari/perl5/perlbrew/bin:/home/ilmari/perl5/perlbrew/perls/18.2/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
    PERL5LIB=/home/ilmari/.perlbrew/libs/18.2@std/lib/perl5
    PERLBREW=command perlbrew
    PERLBREW_BASHRC_VERSION=0.73
    PERLBREW_HOME=/home/ilmari/.perlbrew
    PERLBREW_LIB=std
    PERLBREW_MANPATH=/home/ilmari/.perlbrew/libs/18.2@std/man:/home/ilmari/perl5/perlbrew/perls/18.2/man
    PERLBREW_PATH=/home/ilmari/.perlbrew/libs/18.2@std/bin:/home/ilmari/perl5/perlbrew/bin:/home/ilmari/perl5/perlbrew/perls/18.2/bin
    PERLBREW_PERL=18.2
    PERLBREW_ROOT=/home/ilmari/perl5/perlbrew
    PERLBREW_VERSION=0.73
    PERLDOC_PAGER=less -Ri
    PERL_AUTOINSTALL_PREFER_CPAN=1
    PERL_BADLANG (unset)
    PERL_LOCAL_LIB_ROOT=/home/ilmari/.perlbrew/libs/18.2@std
    PERL_MB_OPT=--install_base /home/ilmari/.perlbrew/libs/18.2@std
    PERL_MM_OPT=INSTALL_BASE=/home/ilmari/.perlbrew/libs/18.2@std
    PERL_MM_PREFER_CPAN=1
    PERL_MM_USE_DEFAULT=1
    SHELL=/bin/bash

Thread Previous


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