Return each number from a group of numbers The challenge

The program must return all numbers included into a group (comma and hyphen separated sequence) of numbers. 

Rules


s is the sequence string;
all numbers included in s are positive;
numbers will always increase;
numbers will never repeat
when you answer, show the output for s="1,3-5,9,16,18-23"


Examples

input(s)    outputs
-----------------
1           1
1,2         1,2
1-4         1,2,3,4
1-4,6       1,2,3,4,6
1-4,8-11    1,2,3,4,8,9,10,11


Good luck. =)
Perl 25 26 25

$_ is the sequence string

s/-/../g;$_=join",",eval


Sample session:

[~/] $ perl -M5.010 -pe 's/-/../g;$_=join",",eval' &lt;&lt;&lt; "1,3-5,9,16,18-23"
1,3,4,5,9,16,18,19,20,21,22,23


Added 1 character to the character count for the -n-p option (thanks Gareth, ..kinda).