develooper Front page | perl.perl5.porters | Postings from July 2001

[ID 20010731.067] local($#array) is not local :(

Thread Next
From:
Jeff Pinyan
Date:
July 31, 2001 12:05
Subject:
[ID 20010731.067] local($#array) is not local :(
Message ID:
200107311905.PAA07800@towers.crusoe.net

This is a bug report for perl from jefpin@towers.crusoe.net,
generated with the help of perlbug 1.33 running under perl v5.7.2.


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

  @a = (1..5);
  {
    local $#a = 2;
    print "@a\n";
  }
  print "@a\n";

  __END__
  1 2 3
  1 2 3

That's a bit discouraging.

[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=core
    severity=medium
---
Site configuration information for perl v5.7.2:

Configured by jefpin at Tue Jul 31 12:20:33 EDT 2001.

Summary of my perl5 (revision 5.0 version 7 subversion 2 patch 11471) configuration:
  Platform:
    osname=linux, osvers=2.2.16-3, archname=i586-linux
    uname='linux towers.crusoe.net 2.2.16-3 #5 sat jul 8 11:42:18 edt 2000 i586 unknown '
    config_args='-Dprefix=/tmp/bleadperl -Dusedevel -DDEBUGGING -de'
    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=define
  Compiler:
    cc='cc', ccflags ='-Wall -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O2',
    cppflags='-Wall -fno-strict-aliasing'
    ccversion='', gccversion='egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)', 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 -lndbm -lgdbm -ldb -ldl -lm -lc -lposix -lcrypt -lutil
    perllibs=-lnsl -ldl -lm -lc -lposix -lcrypt -lutil
    libc=undef, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'

Locally applied patches:
    DEVEL11466

---
@INC for perl v5.7.2:
    /tmp/bleadperl/lib/5.7.2/i586-linux
    /tmp/bleadperl/lib/5.7.2
    /tmp/bleadperl/lib/site_perl/5.7.2/i586-linux
    /tmp/bleadperl/lib/site_perl/5.7.2
    /tmp/bleadperl/lib/site_perl
    .

---
Environment for perl v5.7.2:
    HOME=/home/jefpin
    LANG=en_US
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/usr/bin:/bin:/usr/local/bin:/usr/X11R6/bin:/home/jefpin/bin
    PERL_BADLANG (unset)
    SHELL=/bin/tcsh


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