Dear sisters and brothers in Perl,

I wrote a Perl/Tk application for a Windows OS. When it starts it displays a bitmap file which is located in the same directory as the Perl script is.

Now, I want to make the program available for others, who not necessarily have a Perl installed on their system. Solution obviously is to pack the program into an executable PAR archive with the PAR::Packer "pp" program. The bitmap file is missing then, but it can be packed into the archive with the --addfile option. However, my program won't find the bitmap when started - I assume that it can't because the archive is unpacked in another directory than the executable file is located, but the current path is the one where the executable is placed - which I tested with the cwd command.

I tried to find a solution with Google, but either I asked the wrong keywords, or I simply am too stupid - or both. That's why I would like to ask you for help.

My question is either:
How do I locate the bitmap file which I added to the archive using the --addfile option?
or
Which other possibility do I have to include the bitmap into my program?

Many thanks in advance.

Best greetings and wishes,
Yours

chanklaus

Learning is like swimming against the current - as soon as you stop you'll drift back
(Chinese proverb)

In reply to PAR::Packer: pp with addfile option: where are the files? by chanklaus

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.