I use pp to encrypt the code.
pp -f Crypto -F Crypto -M Filter::Crypto::Decrypt -o run run.pl

pp --version
PAR Packager, version 1.012 (PAR version 1.005)

perl -v
This is perl 5, version 14, subversion 2 (v5.14.2) built for x86_64-linux-thread-multi
(with 1 registered patch, see perl -V for more detail)

uname –a
Linux 2.6.18-274.7.1.el5.centos.plusxen #1 SMP Thu Oct 20 20:15:26 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux

When I execute ./run, I got Unknown PerlIO layer "encoding" at script/run.pl line 981. Below are the code related to this error. I guessed the “Unknown PerlIO layer” might related to the line 980, binmode STDOUT, ":encoding(UTF-8)". But, I do not know how to fix it. Can someone help?
Note: I do not get "Unknown PerlIO layer" when I execute run.pl directly.

980 binmode STDOUT, ":encoding(UTF-8)"; 981 print <<FOUND3; 982 </tbody> 983 </table> 984 </td> 985 <td class="regularText" style="width: 200px; vertic +al-align: top; text-align:center; padding-left:10px; padding-t op +:20px"> 986 <table border="0" cellpadding="0" cellspacing="0 +" width="100%"> …… 1018 </td> 1019 </tr> 1020 </tbody> 1021 </table> 1022 </center> 1023 </body> 1024 </html> 1025 FOUND3


In reply to Unknown PerlIO layer "encoding" at script/run.pl line 981 by Gary Yang

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.