$ perl -le' my $range = "6-9,1-3,11"; $range =~ s/-/../g; my @numbers = eval $range; print "@numbers"; ' 6 7 8 9 1 2 3 11
In reply to Re: Extracting Ranges from Sequences using hashes
by jwkrahn
in thread Extracting Ranges from Sequences using hashes
by harishnuti
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |