develooper Front page | perl.perl6.users | Postings from May 2018

Is there a backward "for @"

Thread Next
From:
ToddAndMargo
Date:
May 15, 2018 22:31
Subject:
Is there a backward "for @"
Message ID:
2a242b37-6c1e-b51c-3a2c-c385042f82cc@zoho.com
Hi All,

This seems like a trivial question, but I really adore
the "for" loops.  Is there a way to do the backwards?
In other words, start at the end of the array and loop
to the beginning?  Does the "next" and "last" work in
this?

Inquiring minds want to know!

Many thanks,
-T

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