I also had some trouble with standalone scripts made with PAR and found out it doesn't automatically import all TK modules you used. I think it also doesn't follow modules that are used by other modules you used in your script.

F.I. I used

use Tk;
Which worked in my normal perl script but to get it working with PAR as a PAR standalone executable I had to use:
use Tk; use Tk::Menubutton; use Tk::Text; use Tk::FileSelect;
The same goes for:
use IO::File; use File::Find;
One of these seems to use Carp::Heavy;

When I included the extra modules my standalone exe worked like a charm. I found out which modules were missing by running the exe from the commandline on a machine on which I have no perl installed. The error output tell you the missing modulename. In your case you have to include at least;

use Archive::Zip; use Tk::Dialog;
I hope it solves your problems. It worked for me ;)
P.S. If it all works you might want to use the option --gui to get rid of the dos window.


Teabag
Sure there's more than one way, but one just needs one anyway - Teabag

In reply to Re: PP - am I crazy or what!? by teabag
in thread PP - am I crazy or what!? by michaelg

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.