Hi --

I have bundled a script and some modules using PAR on WinXP (Home):

pp -o myapp.exe myapp.pl
My app uses command line parameters:
perl myapp.pl -in foo.txt -verbose -out bar.txt
I am getting flaky results. Sometimes when I run
myapp.exe -in foo.txt -out bax.txt
or
myapp -in foo.txt -out bax.txt
I just get back a dos command prompt -- nothing happens. Sometimes it runs, sometimes it just chooses not to do anything. No errors, just a dos prompt back w/o any program activity.

I am unable to determine a pattern as to when it works and when it does not.

Anyone have ideas? Is this a PAR problem, or is a WinXp issue?

rkg

UPDATE

I have noticed that if the .exe runs once, then on subsequent tries it will run no more. It is as if something is getting cached somewhere... befuddled, help sought!

janitored by ybiC: Rename from "PAR" to facilitate better searching


In reply to PAR, commandline args, WinXP by rkg

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.