http://www.perlmonks.org?node_id=1018308


in reply to Processing words in a file.

Are you interested in checking all strings or just the first string? Could you include a few lines from an actual file and indicate your desired output? Thanks!