Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- accessing single characters of strings
- Marten Lehmann
October 21, 2008, 5:56 pm
rate this thread
Re: accessing single characters of strings
substr() is the function you are looking for.
However I very strongly recommend that you change your mental model.
Perl strings are _NOT_ arrays of characters. That primitive model is
adaquate for C. Perl strings are much more powerful and if you use them
like you would use arrays of characters in C, then you are missing most
of their functionality.
- » FAQ 5.36 Why doesn't glob("*.*") get all the files?
- — Previous thread in » PERL Discussions