Skip to content

Instantly share code, notes, and snippets.

@bessarabov
Created June 21, 2015 13:19
Show Gist options
  • Save bessarabov/2e938f4bbb79e78d1941 to your computer and use it in GitHub Desktop.
Save bessarabov/2e938f4bbb79e78d1941 to your computer and use it in GitHub Desktop.
This is a bug report for perl from ivan@bessarabov.ru,
generated with the help of perlbug 1.39 running under perl 5.18.2.
-----------------------------------------------------------------
[Please describe your issue here]
In the perlvar documentation there is a text about @_:
> Within a subroutine the array @_ contains the parameters passed to that
> subroutine. Inside a subroutine, @_ is the default array for the array
> operators push, pop, shift, and unshift.
I think that this is incorrect and should be changed to:
> ... the array operators pop and shift.
The reason behind it that you can use pop & shift without any parameters,
but you can't use push & unshift without parameters, you must explicitly
specify array.
This bugreport is created after the discussion at
https://stackoverflow.com/questions/30960126/how-can-i-use-perl-default-array-variable-with-push
[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
category=docs
severity=low
---
Site configuration information for perl 5.18.2:
Configured by vxd at Tue Sep 9 18:51:16 PDT 2014.
Summary of my perl5 (revision 5 version 18 subversion 2) configuration:
Platform:
osname=darwin, osvers=14.0, archname=darwin-thread-multi-2level
uname='darwin glow.apple.com 14.0 darwin kernel version 14.0.0: tue aug 19 19:20:45 pdt 2014; root:xnu-2782.1.85~1development_x86_64 x86_64 '
config_args='-ds -e -Dprefix=/usr -Dccflags=-g -pipe -Dldflags= -Dman3ext=3pm -Duseithreads -Duseshrplib -Dinc_version_list=none -Dcc=cc'
hint=recommended, useposix=true, d_sigaction=define
useithreads=define, usemultiplicity=define
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=define, use64bitall=define, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-arch x86_64 -arch i386 -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -fstack-protector',
optimize='-Os',
cppflags='-g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -fstack-protector'
ccversion='', gccversion='4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)', gccosandvers=''
intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='cc -mmacosx-version-min=10.10', ldflags ='-arch x86_64 -arch i386 -fstack-protector'
libpth=/usr/lib /usr/local/lib
libs=
perllibs=
libc=, so=dylib, useshrplib=true, libperl=libperl.dylib
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags='-arch x86_64 -arch i386 -bundle -undefined dynamic_lookup -fstack-protector'
Locally applied patches:
/Library/Perl/Updates/<version> comes before system perl directories
installprivlib and installarchlib points to the Updates directory
---
@INC for perl 5.18.2:
/Users/bessarabov/perl5/lib/perl5/darwin-thread-multi-2level
/Users/bessarabov/perl5/lib/perl5
/Users/bessarabov/perl5/lib/perl5/darwin-thread-multi-2level
/Users/bessarabov/perl5/lib/perl5/darwin-thread-multi-2level
/Users/bessarabov/perl5/lib/perl5
/Users/bessarabov/perl5/lib/perl5/darwin-thread-multi-2level
/Users/bessarabov/Dropbox/git//App-Lame/lib
/Users/bessarabov/Dropbox/git//App-BUpload/lib
/Users/bessarabov/Dropbox/git//App-Lame/lib
/Users/bessarabov/Dropbox/git//App-BUpload/lib
/Library/Perl/5.18/darwin-thread-multi-2level
/Library/Perl/5.18
/Network/Library/Perl/5.18/darwin-thread-multi-2level
/Network/Library/Perl/5.18
/Library/Perl/Updates/5.18.2
/System/Library/Perl/5.18/darwin-thread-multi-2level
/System/Library/Perl/5.18
/System/Library/Perl/Extras/5.18/darwin-thread-multi-2level
/System/Library/Perl/Extras/5.18
.
---
Environment for perl 5.18.2:
DYLD_LIBRARY_PATH (unset)
HOME=/Users/bessarabov
LANG=en_US.UTF-8
LANGUAGE=en_US.UTF-8
LC_ALL=en_US.UTF-8
LC_CTYPE=UTF-8
LD_LIBRARY_PATH (unset)
LOGDIR (unset)
PATH=/Users/bessarabov/perl5/bin:/Users/bessarabov/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/bessarabov/perl5/bin:/Users/bessarabov/bin:/Users/bessarabov/Dropbox/git//transformer/bin:/opt/vagrant/bin:/Users/bessarabov/Dropbox/git/App-RoundHundred/bin:/Users/bessarabov/Dropbox/git//App-Lame/bin:/Users/bessarabov/Dropbox/git//App-BUpload/bin:/Users/bessarabov/Dropbox/git//transformer/bin:/opt/vagrant/bin:/usr/local/bin:/Users/bessarabov/Dropbox/git/App-RoundHundred/bin:/Users/bessarabov/Dropbox/git//App-Lame/bin:/Users/bessarabov/Dropbox/git//App-BUpload/bin
PERL5LIB=/Users/bessarabov/perl5/lib/perl5:/Users/bessarabov/perl5/lib/perl5/darwin-thread-multi-2level:/Users/bessarabov/perl5/lib/perl5:/Users/bessarabov/perl5/lib/perl5/darwin-thread-multi-2level::/Users/bessarabov/Dropbox/git//App-Lame/lib:/Users/bessarabov/Dropbox/git//App-BUpload/lib:/Users/bessarabov/Dropbox/git//App-Lame/lib:/Users/bessarabov/Dropbox/git//App-BUpload/lib
PERL_BADLANG (unset)
SHELL=/bin/bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment