![]() |
|
good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: index using a rangeby farang (Chaplain) |
on Jun 14, 2013 at 06:22 UTC ( #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
|
|