in reply to number sequence
Then you a write a routine to manage the worker routines (manager()). The manager function tests its argument for the presence of a '-'. If the hyphen is present, pass the argument to ranger($arg); otherwise call simple($arg) and return the result in either case.
Finally you write your controller control(), which is responsible for decomposing your input string into smaller bits:
Welcome to the world of iterative parsing; recursive descent is your friend.
Update -- added tag to close the list.
----
I Go Back to Sleep, Now.
OGB
|
|---|