This is what I finally came up with, but it too seems rather clunky. my $cnt = 0; $_ = $notes; $cnt = tr/\n//;
-- Rob On Wed, 19 Nov 2003, Rob wrote: > Hi, I'm trying to find out how many newline characters are in a string. I > thought there would be a simple function for this, but I can't find it; > Do I need to step through the string a character at a time to check this? > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]