|
|
| P is for Practical | |
| PerlMonks |
Re: Breaking down whole number into digitsby ww (Chancellor) |
| on Nov 29, 2012 at 21:25 UTC ( #1006359=note: print w/ replies, xml ) | Need Help?? |
|
Ignoring (because you've given us no hint of how you plan to translate "Nov" to 11), you can, of course, use a regex to separate a number like "11" into separate digits:
Note that this is NOT a recommended approach since it doesn't deal with "1995" or with the ...say, second day of a month.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||