Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: count special character

by changma_ha (Sexton)
on Aug 18, 2010 at 10:44 UTC ( #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? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2022-08-10 22:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?