oops
my bad
it's the third time he posts his code and it's different each time :P
The one before was for(0..$#array)
that's why I told it was the index
Etienne
"Brett W. McCoy" wrote:
>
> On Thu, 8 Nov 2001, Etienne Marcotte wrote:
>
> > because $_ contains the index number only
> >
> > you need to access the element of the array!!!
> >
> > -label=>$_boards[$_],
> > -value =>$_boards[$_],
>
> No, actually, $_ contains the actual item from the array as used in a
> foreach loop like this.
>
> The radio button doesn't display because it wasn't printed out:
>
> foreach (@_boards){
> print $cc3-> radiobutton (-label=>$_,
> -value =>$_,
> -variable=>\$NIC,
> -command =>sub { cbkSetLangage}
> );
>
> }
>
> -- Brett
> http://www.chapelperilous.net/
> ------------------------------------------------------------------------
> "What I've done, of course, is total garbage."
> -- R. Willard, Pure Math 430a
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]