A backslash will not help you, since a bullet is not a special character in regular expressions.
If you specify that the input is UTF-8, you should look for the UTF-8 bullet. To do this, add
use utf8;
and save the script as UTF-8; or use
\N{BULLET}
In your case, splitting and joining can be replaced by simply replacing the bullet with a space:
while (<$filehandle>) {
s/\N{BULLET}/ /g;
print;
}
source
share