On 13 August 2002 04:44 Janek Schleicher [mailto:[EMAIL PROTECTED]] wrote:
> Kirby_sarah wrote at Mon, 12 Aug 2002 23:28:44 +0200:
> > line 344: $policyCount = split (/\t/, $violations{$vID});   
> 
> Another way to count the parts is
> 
> my $count = 1;
> while ($violations{$vID} =~ /\t/g) { $count++ }
> 

If you just want to count characters, you can use tr with an empty output
list...

        $violations =~ tr:\t::;


Richard Cox 
Senior Software Developer 
Dell Technology Online 
All opinions and statements mine and do not in any way (unless expressly
stated) imply anything at all on behalf of my employer



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to