in reply to Problem with getSaveFile in 'pp'-mode

Like your previous post, you're going to have to tell us what doesn't work. How do I post a question effectively?.

update: ignore.the above. Can you show.how you used pp to build this? Did you use the -x flag?

Replies are listed 'Best First'.
Re^2: Problem with getSaveFile in 'pp'-mode
by jowe (Sexton) on Mar 09, 2013 at 18:47 UTC
    I tried to describe the problem in 4 steps:
    1. line 3-33 is the script. When executing as 'perl sample_getSaveFile.pm' it works fine.
    2. line 37: using PAR::Packer to package the very same script (from step 1) into a binary executable.
    3. line 41-42: Executing the generated binary executable from step 2 show error messages
    4. line 46-55: after including 'use Tk::Bitmap' into the script (line 3-33) and running the PAR::Packer again (step 2) the executable shows different error messages.

    My question: "what am I doing wrong or what modules have to be included to satisfy PAR::Packer?"
Re^2: Problem with getSaveFile in 'pp'-mode
by jowe (Sexton) on Mar 09, 2013 at 18:52 UTC
    see line 37 please.

      Sorry, not my day. You want to call pp with -x. See the pp documentation. Note that this is lowercase rather than uppercase x. Go ahead and add -x to your pp arguments and test the resulting executable

        Tried it with the lowercase-x-option. This is the result:
        XS_Tk__Callback_Call error:must specify one of -data, -file, -array or + -id at Tk/Image.pm line 21. Tk::Error: must specify one of -data, -file, -array or -id at Tk/Image +.pm line 21. Tk callback for image Tk::Image::new at Tk/Image.pm line 21 Tk::Image::__ANON__ at Tk/Image.pm line 63 Tk::FBox::Update at Tk/FBox.pm line 404 Tk::After::once at Tk/After.pm line 90 [once,[{},after#13,idle,once,[{},Update]]] ("after" script)
        I ran it with the lowercase-x-option. That does not seem to cure it. However, running with the uppercase-C-option and lowercase-x-option - that combination finally worked.
        In my opinion, the uppercase-C-option cleans-up the temp-files at runtime once the application terminates. Shall this be reported as a 'bug' (in this case I would not know who to contact) or should it be silently accepted? What is your advise?
        Sorry, it should actually read: "uppercase-C-option OFF and lowercase-x-option ON".