![]() |
|
Keep It Simple, Stupid | |
PerlMonks |
index using a rangeby romano (Initiate) |
on Jun 13, 2013 at 22:47 UTC ( #1038852=perlquestion: print w/replies, xml ) | Need Help?? |
romano has asked for the
wisdom of the Perl Monks concerning the following question:
I have a string composed of numbers. Is there a way to find the index for the first non-zero character 1-9? Can I do this directly? I know I can use 'pos' or substitute for non-zero values and then do index but is there a way to do that directly?
This does not work. grazie, romano
Back to
Seekers of Perl Wisdom
|
|