in reply to find acronyms in a text
You say you're dealing with a Word document. Word docs are binary files, but you are treating this as a plain text file. That could potentially cause all sorts of problems.
See the Copyright notice on my home node.
Perl training courses