|Perl Monk, Perl Meditation|
Re: splitting a number into several numbersby dwatson06 (Friar)
|on Jul 05, 2002 at 18:11 UTC||Need Help??|
If this is input by the user and you will not know how many numbers will be coming in...
You can grab the length of the input...
do a loop using the value...
then just grab substrings by an increment of twos.
Of course you will need to make sure the number coming in is even then handle other conditions on the odds.
Hope this helps.