in reply to Re^2: Write code using less linesin thread Write code using less lines
Or possibly:
my $len_seq = $str =~ tr/-//c; [download]