http://qs1969.pair.com?node_id=436962


in reply to the '..' operator and decreasing values

Wouldn't : foreach my $i (10 .. 0) { #Do something } do the trick instead??? -Woodchuck
  • Comment on Re: the '..' operator and decreasing values

Replies are listed 'Best First'.
Re^2: the '..' operator and decreasing values
by SolidState (Scribe) on Mar 06, 2005 at 16:47 UTC
    No, since "for" is simply an alias of "foreach", so that your code is exactly quivalent to the original poster's code.