On 04/26/00, ""Justin Rogers" <[EMAIL PROTECTED]>" 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

RTM
perldoc -q count

$_ = "1.4.6.3";
$cnt = tr/.//;

HTH,
Douglas Wilson

---
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]

Reply via email to