![]() |
|
go ahead... be a heretic | |
PerlMonks |
Re: splitting a number into several numbersby dwatson06 (Friar) |
on Jul 05, 2002 at 18:11 UTC ( #179698=note: 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 Section
Seekers of Perl Wisdom
|
|