I'm trying to create my first perl script, and could use some help.
I have a file containing one word per line, e.g:
PEAR
PINEAPPLE
ORANGE
I would like to search in the file for a specific word, and if it's found I will write it to a file. It must be an exact match, so "PEAR" should return "true" but "APPLE" should return "false"