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

[ID 20010107.013] Selection lists broken.

January 7, 2001 20:15
[ID 20010107.013] Selection lists broken.
Message ID:
This is a bug report for perl from,
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:
    osname=linux, osvers=2.2.14, archname=i386-linux
    uname='linux 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
    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:

Environment for perl 5.00503:
    LANG (unset)
    LANGUAGE (unset)
    LOGDIR (unset)
    PERL_BADLANG (unset)
    SHELL=/bin/bash Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About