@array = ( 7..1 ); # returns an empty array @array = map { $_ * -1 } ( -7..-1 ); # When generating the array you are technically going # up from a large negative to a small negative. # Then, you multiply each value by -1 and assign # to @array. Works like a charm.
In reply to Autogenerate descending arrays by bl0rf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |