|
|
| more useful options | |
| PerlMonks |
Re^2: Counting number of characters in a stringby Anonymous Monk |
| on Nov 19, 2009 at 16:45 UTC ( #808202=note: print w/ replies, xml ) | Need Help?? |
|
if you're not in a subroutine, doing a split in scalar context: $length=split(//, $string) acheives the same thing. Don't do this in a subroutine though, or else you'll clobber your @_.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||