in reply to need more explanation on the second arguement in open
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