|
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
|