develooper Front page | perl.perl5.porters | Postings from June 2021

Re: RFC: Multiple-alias syntax for for

Thread Previous | Thread Next
From:
David Nicol
Date:
June 22, 2021 18:07
Subject:
Re: RFC: Multiple-alias syntax for for
Message ID:
CAFwScO-F=MwBC-nXawJPgm0ke9Hw8mrRporRbq5OacLkD6Cugw@mail.gmail.com
Don't recall seeing this case discussed:

              my @iters = (undef,undef); # empty list would be run-time
error!
              for @iters ( @iterees) {
                    ... #   $iters[0] is alias to even iterees, $iters[1]
is alias to odd ones
                    # if @iters changes size, next time through it gets
that many
             }




-- 
"Lay off that whiskey, and let that cocaine be!" -- Johnny Cash

Thread Previous | Thread Next


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