my $input = "7-12"; my ($start, $end) = split /-/, $input; my @output = $start..$end; print "@output\n"; # 7 8 9 10 11 12
In reply to Re: numeric manipulation
by Eliya
in thread numeric manipulation
by gerry622
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |