laziness, impatience, and hubris | |
PerlMonks |
Re: do 45-47 to array 45,46,47by Lawliet (Curate) |
on Jul 01, 2013 at 12:39 UTC ( [id://1041837]=note: print w/replies, xml ) | Need Help?? |
Problem: You are given the input string "88-99", and you need to output each number from 88 to 99, inclusive.
The key here is the range (..) operator. From perldoc, the range operator returns a list of values counting (up by ones) from the left value to the right value.
In Section
Seekers of Perl Wisdom
|
|