This looks as if your file is in UTF-16LE encoding. Use the following to read it:
my $filename = "C:\\TEMP\\PT_TEST_STAT_EXP_export.log"; open my $fh, '<:encoding(UTF-16LE)', $filename or die "Couldn't read '$filename': $! / $^E"; while (<$fh>) { ... };
In reply to Re: perl read a file on Windows is very strange
by Corion
in thread perl read a file on Windows is very strange
by perlisfun
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |