in reply to Re: Encoding horridness revisited: What's going on here?
in thread Encoding horridness revisited: What's going on here? [SOLVED]

Or just add
use utf8; use open IO => ':encoding(UTF-8)', ':std';

and remove all binmode or :encoding in open calls.

($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

Replies are listed 'Best First'.
Re^3: Encoding horridness revisited: What's going on here?
by karlgoethebier (Abbot) on Jul 13, 2017 at 16:00 UTC

    This works! I'll try the solution from 1nickt and update the OP. Very nice!

    Thank you very much, Karl

    «The Crux of the Biscuit is the Apostrophe»

    perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help