Problems? Is your data what you think it is? | |
PerlMonks |
Re: index using a rangeby farang (Chaplain) |
on Jun 14, 2013 at 06:22 UTC ( [id://1038896]=note: print w/replies, xml ) | Need Help?? |
Assuming the string is only numerals and isn't all zeros (which could be checked for separately), here's a method that uses coercion of a string into a number.
In Section
Seekers of Perl Wisdom
|
|