in reply to removing 2 blanks from a string

Try this,
$string =~ s/( )+/ /g;