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 = $faqline =~ s/\./\./;
does that work? Or is:
$_ = $faqline;
$count = s/\./\./;
More appropriate. Or am I totally wrong.
- Justin Rogers, CEO DigiTec Web Consultants
[COOP]DigiTec - Half-Life, Q3A, Unreal Tournament
---
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]