I am currently using PAR to create an executable that I can deliver to users who don't have perl installed on their machines. The exe has to connect to a database and must contain a password so I thought it would be a good idea to filter the code rather than keep it in plain view. Below is the command I am using to get PAR to filter the code.

pp -f Bleach -o out.exe out.pl

Because the executable is a self extracting zip archive I can open up the contents and take a look with a package like winzip.

To my surprise

There are two versions of the original perl script within the archive. The first is located at
 script/
and is filtered. The other copy is located at
 lib/
and is in plain text.

Does anyone know how to get both copies to filter?

In reply to PAR only filters one of two copies of the script to be placed in the executable by atopolc

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.