in reply to How to parse input file and print without double space

The file is encoded using UCS-2le. You're treating it as if it was encoded using iso-latin-1. Just decode it.

open(my $log_fh, '<:encoding(UCS-2le)', $log_qfn) or die("Can't open log file \"$log_qfn\": $!\n");

Replies are listed 'Best First'.
Re^2: How to parse input file and print without double space
by kadams (Initiate) on Oct 30, 2008 at 20:45 UTC
    Many thanks!!! Of course as luck would have it, after
    posting here i found a site that pointed me in that
    direction. Everything i'd read up until then had not
    mentioned ucs2 or utf16. Your post makes it even
    better.

    Thanks much!!!

    K