Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: count special character

by changma_ha (Sexton)
on Aug 18, 2010 at 10:44 UTC ( [id://855735]=note: print w/replies, xml ) Need Help??


in reply to count special character

I hope this will help u .

#! /usr/bin/perl use warnings; use strict; my $string = "The Expo is not the place to promote trade, this is abou +t culture,"; my $count = ($string =~ tr/,/ /); print $count;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://855735]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-04-19 12:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found