|
|
| No such thing as a small change | |
| PerlMonks |
Answer: How do I get the Nth character of a string? |
| ( #2263=categorized answer: print w/ replies, xml ) | Need Help?? |
|
Q&A > strings > How do I get the Nth Character of a String? contributed by vroom
Use substr with a length of one. The character numbering
is zero based so the first character in the string is the
0th element.
|
|
||||||||||||||||||