in reply to Re^3: foreach array manipulation
in thread foreach array manipulation
does indeed work thus illustrating the point I was talking about, C<for> is IMHO more intuitively appropriate. OTOH many perl programmers, and I for one, always use C<for> instead of C<foreach> for the perlish form. Which is one of the reasons why Larry chose to only have C<for> and a separate keyword, namely C<loop> for C-style loops, in Perl6, that is.foreach (my $i=0; i<10;$i++) { #...
[*]I'm thinking especially of that paragraph of Conways's in which he mentions another book on general UIs and talks about how if you have a door that must be pulled then you'd better put a handle on it and if must be pushed then something flat instead (sorry for the bad wording, could not come with anything better!)
|
|---|