Re: OO Perl, iterators



A. Sinan Unur <1usa@xxxxxxxxxxxxxxxxxxx> wrote in comp.lang.perl.misc:
> anno4000@xxxxxxxxxxxxxxxxxxxxxxx (Anno Siegel) wrote in
> news:dk4s2t$e6r$1@xxxxxxxxxxxxxxxxxxxxxxxxx:
>
> > my $i_th = @answers[ $i];
>
> Just a quick correction: @answers[$i] is an array slice; ITYM:
>
> my $i_th = $answers[ $i];

Oh, that too... Same mistake as with the random element you mercifully
snipped. I was thinking Perl 6[1], that's my excuse.

Anno

[1] Though I don't understand how Larry can say Perl 6 is still going
to be Perl when the variables don't change their sigils like a
chameleon (ha!) its colors.
--
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.
.



Relevant Pages

  • Re: Auction Sniper
    ... "Google Groups" herding them in a clueless as they come. ... > approached this task it is likely that they would have done so in Perl ... Anno ... "Reply" at the bottom of the article headers. ...
    (comp.lang.perl.misc)
  • Re: Returning specific data from a webpage?
    ... Newbie ... > operating system can play nasty tricks on the unsuspecting individual. ... At first sight it looks pretty harmless, after all Perl finds the ... "Reply" at the bottom of the article headers. ...
    (comp.lang.perl.misc)
  • Re: m//ms
    ... is also the standard in Perl 6. ... Anno ... "Reply" at the bottom of the article headers. ...
    (comp.lang.perl.misc)
  • Re: need help parsing file for output
    ... I have only the basic - no add-on modules except what comes with Perl ... output all numerics inside double quotes to the number inside the ... column two (top to bottom), ... # 4) ignore lines with only commas ...
    (perl.beginners)
  • Re: need help parsing file for output
    ... Is this possible with Perl 5.x.. ... output all numerics inside double quotes to the number inside the ... column two (top to bottom), ... # 4) ignore lines with only commas ...
    (perl.beginners)