in reply to Re: Counting number of characters in a string
in thread Counting number of characters in a string

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 @_.
  • Comment on Re^2: Counting number of characters in a string