in reply to counting regex hits
my $string="ARKL---MNRD--SET"; my $count = () = $string =~/-/g; print $count; __END__ 5 [download]
CURobartes-