Just another Perl shrine | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | 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... half it... 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. Daniel In reply to Re: splitting a number into several numbers
by dwatson06
|
|