in reply to counting backward
Because the range operator is defined as low .. high and as 10 is higher than 0, it does nothing.
There are a couple of ways of doing what you want:
- for my $i ( reverse 0 .. 10 ) { print $i }
Which is okay for small ranges; but creates a huge list for large ones.
- for my $i ( -10 .. 0 ) { print -$i }
Which works for any size range without creating a huge list.
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom