develooper Front page | perl.perl5.porters | Postings from May 2004

[perl #29713] problem with calling glob in scalar context multiple times

Jeffrey . H . Mitchell @ frb . gov
May 19, 2004 07:18
[perl #29713] problem with calling glob in scalar context multiple times
Message ID:
# New Ticket Created by 
# Please include the string:  [perl #29713]
# in the subject line of all future correspondence about this issue. 
# <URL: >

This is a bug report for perl from,
generated with the help of perlbug 1.28 running under perl v5.6.0.

[Please enter your report here]
Running the code:

for (qw(~ ~)) {
  my $expanded = glob($_);
  print "scalar: $expanded\n";
  ($expanded) = glob($_);
  print "list: $expanded\n";

Gives the output:

scalar: /eim/home/m1jhm01
list: /eim/home/m1jhm01
list: /eim/home/m1jhm01

If called more times, it alternates between working and not working when
called in scalar context.

I have version 0.991 of File::Glob installed, while tells
me that the current version is 1.02.  Arguably it is a more serious bug
that I cannot figure out how to view the Changes file for File::Glob on or apparently install the latest version of File::Glob
without installing all of Perl.  Hence, I do not know whether this bug has
already been fixed.

[Please do not change anything below this line]
Site configuration information for perl v5.6.0:

Configured by m1klk99 at Wed Mar 29 09:00:37 EST 2000.

Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
    osname=solaris, osvers=2.6, archname=sun4-solaris
    uname='sunos arcmx1 5.6 generic_105181-16 sun4u sparc sunw,ultraax-mp '
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef
    useperlio=undef d_sfio=undef uselargefiles=define
    use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef
    cc='cc', optimize='-O', gccversion=
    cppflags='-I/usr/gnu/include -I/opt/gnu/include'
    ccflags ='-I/usr/gnu/include -I/opt/gnu/include -D_LARGEFILE_SOURCE
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
    alignbytes=8, usemymalloc=y, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib -L/opt/local/lib -L/usr/gnu/lib
-L/opt/gnu/lib -L/opt/SUNWwsf/SUNWspro/SC4.2/lib '
    libpth=/usr/local/lib /opt/local/lib /usr/gnu/lib /opt/gnu/lib
/opt/SUNWwsf/SUNWspro/SC4.2/lib /lib /usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -lgdbm -ldl -lm -lc -lcrypt -lsec
    libc=/lib/, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
    cccdlflags='-KPIC', lddlflags='-G -L/usr/local/lib -L/opt/local/lib
-L/usr/gnu/lib -L/opt/gnu/lib -L/opt/SUNWwsf/SUNWspro/SC4.2/lib'

Locally applied patches:

@INC for perl v5.6.0:

Environment for perl v5.6.0:
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)


    PERL_BADLANG (unset)
    SHELL=/bin/tcsh Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About