in reply to
Char counting
$num = $s =~ tr/\n//
counts the newlines and is pretty cheap...
Comment on
Re: Char counting
Download
Code
In Section
Seekers of Perl Wisdom