in reply to Re^2: How to Remove Junk Characters
in thread How to Remove Junk Characters

Change
my $file_cnt = $res->content;
to
my $file_cnt = $res->decoded_content;

See HTTP::Message for an explanation of the difference.

Many thanks to the search artist kwapping for finding it and to tye for explaining it :-)