$foo =~ /\b/; # matches a word boundary $foo =~ "\b"; # matches a backspace