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

[ID 20010107.013] Selection lists broken.

From:
thos
Date:
January 7, 2001 20:15
Subject:
[ID 20010107.013] Selection lists broken.
Message ID:
200101080415.UAA16245@jeeves.foneybone.com
This is a bug report for perl from thos@jeeves.foneybone.com,
generated with the help of perlbug 1.26 running under perl 5.00503.


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

Documentation isn't clear, it simply states that the set call on a
selection list should set the values.  I don't know if this array ref
is supposed to be to char strings to replace the values, or refer to
them by index, so I've tried both.

my @choices = ("[X] ", "[ ] ");

Take your pick of the following:

my @x = ("[X] ","[ ] ","[X] ","[X] ","[ ] ","[X] ","[X] ","[X] ","[ ] ");
my @x = ( x,0,1,1,0,1,1,1,0 );

$selection->set('Defaults' => \@x );

then display.  It seems to have no effect either way.

Am I misunderstanding something, or is there a bug here?

Thank you very much for any response.

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

---
Site configuration information for perl 5.00503:

Configured by root at Sat Jun 24 18:04:42 PDT 2000.

Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
  Platform:
    osname=linux, osvers=2.2.14, archname=i386-linux
    uname='linux camco.mi.celestial.com 2.2.14 #1 smp fri nov 19 09:41:26 mst 1999 i686 unknown '
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef useperlio=undef d_sfio=undef
  Compiler:
    cc='gcc', optimize='-O2 -m486 -fno-strength-reduce -fomit-frame-pointer -pipe', gccversion=egcs-2.91.66 19990314 (egcs-1.1.2 release)
    cppflags='-Dbool=char -DHAS_BOOL'
    ccflags ='-Dbool=char -DHAS_BOOL'
    stdchar='char', d_stdstdio=undef, 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='gcc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /shlib /lib /usr/lib
    libs=-lnsl -lndbm -lgdbm -ldb -ldl -lm -lc -lposix -lcrypt
    libc=, 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 5.00503:
    /home/thos/RFS/Perl
    /usr/lib/perl5/5.00503/i386-linux
    /usr/lib/perl5/5.00503
    /usr/lib/perl5/site-perl/i386-linux
    /usr/lib/perl5/site-perl
    .

---
Environment for perl 5.00503:
    HOME=/home/thos
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH=/java/clasess/java40.jar
    LOGDIR (unset)
    PATH=/home/thos/bin:/usr/local/scripts/opt/bin:/usr/local/bin:/bin:/opt/kde/bin:/home/thos/bin:/opt/bin:/usr/local/bin:/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin
    PERL5LIB=/home/thos/RFS/Perl
    PERL_BADLANG (unset)
    SHELL=/bin/bash




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