in reply to need more explanation on the second arguement in open

When confronted with a problem that involved the syntax of a commonly used function, I would recommend reading the docs.

It explains:
open(FH, "<:utf8", "file") will open the UTF-8 encoded file containing Unicode characters.

If you've never dealt with Unicode before it says: see perluniintro



grep
One dead unjugged rabbit fish later