Re: OO Perl, iterators
- From: anno4000@xxxxxxxxxxxxxxxxxxxxxxx (Anno Siegel)
- Date: 31 Oct 2005 13:36:11 GMT
Tad McClellan <tadmc@xxxxxxxxxxxxxx> wrote in comp.lang.perl.misc:
> Anno Siegel <anno4000@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
>
> >> - how to access the i'th answer; $query->answer[$i] does not work
> >
> > my $i_th = @answers[ $i];
> ^
> ^
>
> my $i_th = $answers[ $i];
>
>
> >> - how to access a random answer
> >
> > my $rand_ans = @answers[ rand @answers];
> ^
> ^
>
> my $rand_ans = $answers[ rand @answers];
Oh dear, yes!
Anno
--
If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers.
.
- References:
- OO Perl, iterators
- From: Gregory Toomey
- Re: OO Perl, iterators
- From: Anno Siegel
- OO Perl, iterators
- Prev by Date: Re: Generate png thumbnail
- Next by Date: Re: OO Perl, iterators
- Previous by thread: Re: OO Perl, iterators
- Next by thread: Re: Generate png thumbnail
- Index(es):
Relevant Pages
|