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
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?
Good work! Can you create a minimal example, providing nothing more than the code required to replicate this problem, then the two pp calls that generate the different outcomes? I'm not at home right now but will test this on multiple platforms using the same version of the modules in question. The last time I suggested someone use -x to solve this problem they were under the impression that this should be the default, or at least display a message at run time explaining things. I suggested that they raise this with the maintainers, but it doesn't look like this has happened. Perhaps we can address this concern.