in reply to UTF8 issues

Try
open(INP, '<:utf8',$ARGV[0]) or die...
Update: See open, open.