I've been waiting for par to be ready for prime time, and probably it is, from the success stories I've been reading. I've also been waiting for the need to package up a program, and I've discovered that need at this point.

I'd tried it once before, and ran into some problem that was then being discussed on this list, so did my last release using other techniques.

So I upgraded my Perl to version 5.8.4 AS build 810, downloaded PAR 0.85, replaced the files Alan provided in patches.dat (.zip) for faster startup times, and followed the instructions to make it. I'm running on Win2K.

Then I packaged it with the command

pp --icon app.ico --output app.exe app.pl

Of course, that required packaging together all the packages my app used.

One module, named WinAdj.pm, was included, but preprocessed (not sure why it needed to be preprocessed, or what the point of the preprocessing was). The preprocessed version has a number of #line directives added; it has ^M added (the original had only ^J for line endings), and had both =cut directives removed from its pod. One of them (fortunately) resulted in the load-time "return 1;" statement being logically omitted, which caused an immediate error when running app.exe.

I'm neither a POD nor PAR expert (this module was derived from someone else's which is why it contains POD at all [insert sheepish grin here]), but when I diffed the files and added the =cut lines back in in the copy in the not-cleaned PAR temp directory, then I got past this error.

Can anyone point me in the right direction to understand and/or fix this behavior? I can't be telling people to fix their PAR temp directory contents after the first failed run :) I'd be happy to provide the module source for this module, if it helps.



But, fixing it myself let me verify that that is the problem, and find the next one. My app.pl uses Win32. And it then says:

    $flags = 4 | & Win32::MB_ICONQUESTION;

which works fine as app.pl.  But app.exe reports

  Undefined subroutine &Win32::MB_ICONQUESTION called at ...

I've no clue how to workaround this one, much less fix it, so additional pointers on this topic would be extremely welcome.

--
Glenn -- http://nevcal.com/
===========================
The best part about procrastination is that you are never bored,
because you have all kinds of things that you should be doing.



Reply via email to