From: Jeff King Date: Wed, 16 Sep 2020 18:49:08 GMT Subject: Re: [PATCH 11/15] remote-mediawiki tests: replace deprecated Perl construct Message-ID: <20200916184908.GD33925@coredump.intra.peff.net> In-Reply-To: <20200916102918.29805-12-avarab@gmail.com> On Wed, Sep 16, 2020 at 12:29:14PM +0200, Ævar Arnfjörð Bjarmason wrote: > The use of the encoding pragma has been a hard error since Perl 5.18, > which was released in 2013. What this script really wanted to do was > to decode @ARGV and write out some files with the UTF-8 PerlIO > layer. Let's just do that explicitly instead. Makes sense. After reading this, I expected the utf::decode() for argv you added, but wondered about the UTF-8 output. But I think the "use open ':encoding(utf8)'" below takes care of that. -Peff