The .. operator does exactly that,
I've avoided $a and $b as names since thay are sacred to sort.my ($c, $d) = (2, 8); my @range = $c .. $d;
After Compline,
Zaxo
In reply to Re: Calculating the range between two numbers
by Zaxo
in thread Calculating the range between two numbers
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |