Hi

I use Cygwin for just about anything command line, including perl. However, not all of my co-workers have cygwin (or perl for that matter), so I decided to use PAR::packer to create a standalone executable of my script (see below for dummied down try.pl). So, I ran pp -o try.exe try.pl in my Cygwin environment producing the expected try.exe, which, when run in Cygwin, produces the desired output. However, when I open up a CMD terminal, change directories to where try.exe is located, and run it, I get the following error:

    Usage: try [ -Alib.par ] [ -Idir ] [ -Mmodule ] [ src.par ] [ program.pl ]
    try [ -B|-b ] [-Ooutfile] src.par

Googling for this type of error did not yield very useful results. Does anyone have any suggestions?

Thanks in advance!

use strict; use warnings; print "hello world\n";

In reply to Use PAR::packer to create EXE from Cygwin for CMD by gri6507

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.