develooper Front page | perl.perl5.porters | Postings from February 2000

[ID 20000221.006] "${\ ... }" gives list context.

Thread Previous | Thread Next
From:
abigail
Date:
February 21, 2000 22:10
Subject:
[ID 20000221.006] "${\ ... }" gives list context.
Message ID:
20000222061119.24110.qmail@delanet.com

This is a bug report for perl from abigail@delanet.com,
generated with the help of perlbug 1.27 running under perl v5.5.650.


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

I've reported this many moons ago, but the bug is still present:

$ perl -wle 'sub foo {wantarray ? "ARRAY" : "SCALAR"} print "${\foo}"'
ARRAY
$

It should print "SCALAR".


[Please do not change anything below this line]
-----------------------------------------------------------------

---
Site configuration information for perl v5.5.650:

Configured by abigail at Wed Feb  9 14:15:20 EST 2000.

Summary of my perl5 (revision 5.0 version 5 subversion 650) configuration:
  Platform:
    osname=linux, osvers=2.2.13, archname=i686-linux
    uname='linux alexandra 2.2.13 #5 tue feb 8 15:37:54 est 2000 i686 unknown '
    config_args='-d -Dprefix=/opt/devperl -Doptimize=-g'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef
    usesocks=undef useperlio=undef d_sfio=undef
    use64bits=undef uselargefiles=define usemultiplicity=undef
  Compiler:
    cc='cc', optimize='-g', gccversion=2.95.2 19991024 (release)
    cppflags='-Dbool=char -DHAS_BOOL -DDEBUGGING -fno-strict-aliasing -I/usr/local/include'
    ccflags ='-Dbool=char -DHAS_BOOL -DDEBUGGING -fno-strict-aliasing -I/usr/local/include'
    stdchar='char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    alignbytes=4, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -lndbm -lgdbm -ldbm -ldb -ldl -lm -lc -lposix -lcrypt
    libc=/lib/libc-2.1.2.so, 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:
    

---
@INC for perl v5.5.650:
    /home/abigail/Perl
    /home/abigail/Sybase
    /opt/devperl/lib/5.5.650/i686-linux
    /opt/devperl/lib/5.5.650
    /opt/devperl/lib/site_perl/5.5.650/i686-linux
    /opt/devperl/lib/site_perl/5.5.650
    /opt/devperl/lib/site_perl/5.5.640/i686-linux
    /opt/devperl/lib/site_perl/5.5.640
    /opt/devperl/lib/site_perl/5.00563/i686-linux
    /opt/devperl/lib/site_perl/5.00563
    /opt/devperl/lib/site_perl/5.00562/i686-linux
    /opt/devperl/lib/site_perl/5.00562
    /opt/devperl/lib/site_perl/5.00561/i686-linux
    /opt/devperl/lib/site_perl/5.00561
    /opt/devperl/lib/site_perl/5.00558/i686-linux
    /opt/devperl/lib/site_perl/5.00558
    /opt/devperl/lib/site_perl/5.00557/i686-linux
    /opt/devperl/lib/site_perl/5.00557
    /opt/devperl/lib/site_perl
    .

---
Environment for perl v5.5.650:
    HOME=/home/abigail
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH=/home/abigail/Lib:/usr/local/lib:/usr/lib:/lib:/usr/X11R6/lib
    LOGDIR (unset)
    PATH=/home/abigail/Bin:/opt/perl/bin:/usr/local/bin:/usr/local/X11/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/games:/opt/povray/bin:/opt/teTeX/bin/i686-pc-linux-gnu
    PERL5LIB=/home/abigail/Perl:/home/abigail/Sybase
    PERLDIR=/opt/perl
    PERL_BADLANG (unset)
    SHELL=/bin/bash

Thread Previous | 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