Click here to get back home

Re: Is substr only way of getting nth character of string?

 HomeNewsGroups | Search | About
 comp.lang.perl.misc    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Re: Is substr only way of getting nth character of string? Abigail 03-19-2008
Posted by Abigail on March 19, 2008, 7:14 am
Please log in for more thread options
_
Robbie Hatley (lonewolf@well.com) wrote on VCCCXIV September MCMXCIII in
::
:: Is there any more eloquent way of obtaining the nth
:: character of a string? Or is substr() the best way?


"substr ()" is the best way. If you want the C equivalent of a "character",
use "ord substr ()". Because in C, "characters" are numbers.


Abigail
--
perl -swleprint -- -_=Just\ another\ Perl\ Hacker

Similar ThreadsPosted
Re: Is substr only way of getting nth character of string? March 19, 2008, 8:41 pm
FAQ 4.31 How can I split a [character] delimited string except when inside [character]? January 18, 2005, 12:03 am
FAQ 4.31 How can I split a [character] delimited string except when inside [character]? April 10, 2005, 5:03 pm
FAQ 4.31 How can I split a [character] delimited string except when inside [character]? June 26, 2005, 11:03 am
FAQ 4.31 How can I split a [character] delimited string except when inside [character]? September 19, 2005, 10:03 pm
FAQ 4.31 How can I split a [character] delimited string except when inside [character]? December 7, 2005, 5:03 pm
FAQ 4.31 How can I split a [character] delimited string except when inside [character]? April 16, 2006, 3:03 pm
FAQ 4.31 How can I split a [character] delimited string except when inside [character]? May 25, 2006, 3:03 pm
FAQ 4.31 How can I split a [character] delimited string except when inside [character]? June 19, 2006, 3:03 pm
FAQ 4.31 How can I split a [character] delimited string except when inside [character]? July 30, 2006, 3:03 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap