- or download this
my $count = $string =~ tr/;/;/
- or download this
my $count = $string =~ tr/;//
- or download this
# my $count = $_ =~ tr/;// # same thing
my $count = tr/;//
- or download this
my $count = 0;
...
{
$count += tr/;//
}
- or download this
my $count = 0;
...
{
$count += my @cities = split /;/;
}