Justin Rogers wrote:
>
> What is the easiest way to get a count of a certain character in a string.
> For instance if I wanted to count periods in an FAQ line like:
>
> 1.4.6.3
>
> The item you are reading is nested 3 levels deep. How do I get the count.
$count = $string =~ tr/././;
--
Ned Konz
currently: Stanwood, WA
email: [EMAIL PROTECTED]
homepage: http://www.bike-nomad.com
---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe, forward this message to
[EMAIL PROTECTED]
For non-automated Mailing List support, send email to
[EMAIL PROTECTED]