in reply to Arrays and division not working...

try
open (my $fh, '<:encoding(ucs-2le)', $file) or
open (my $fh, '<:encoding(ucs-2be)', $file) poj

Replies are listed 'Best First'.
Re^2: Arrays and division not working...
by Vishza (Initiate) on Jan 07, 2015 at 06:17 UTC

    Thanks, the following resolved my problem.
    '<:encoding(ucs-2le)' when opening the file. It now works.