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

That's roughly equivalent to:
for(my $i=10;$i<=0;$i++) { # do something }

You can't use .. to count backwards, but try this:

for my $i (reverse 0..10) { # do something }
for $a(-2,12){for $b(0..7){$c=0;$_?hex substr( ef7fa1866706caeff02289402844,2*$_+$a,2)&2**(7-$b):0 and $c+=2**(7-$_)for(0..7);print chr $c;}}

Replies are listed 'Best First'.
Re^2: the '..' operator and decreasing values
by jhourcle (Prior) on Mar 05, 2005 at 02:17 UTC

    You might prefer

    for ( my $i = 10; $i--; ) { # do something }

    I regularly walk array indexes backwards, as you can shave a few cycles off of the standard

    for ( my $i = 0; $i < $array_size; $i++ ) { # whatever }

    logic that people love using in those languages that don't have a 'foreach' command.