in reply to numeric manipulation
This is one of several ways to do this, but if it is homework, you'd better hit PerlDoc and make sure you can explain how your chosen solution works:
$input = '7-12'; $input =~ /(\d+)-(\d+)/ and print $1 .. $2 or die 'Bad input';; 7 8 9 10 11 12
|
|---|