in reply to
Idiomatic Split to Scalar Conversion
You want to count the occurences of a character in a string, right? How about:
my $count = $string =~ tr/,//;
[download]
-sam
Comment on
Re: Idiomatic Split to Scalar Conversion
Download
Code
In Section
Seekers of Perl Wisdom