At 08:05 +0100 18/6/10, John Delacour wrote:
while (<F>){ my $encoding = find_encoding("utf-8");
That should be my $encoding = find_encoding("utf-8"); while (<F>){ of course!