in reply to GUI seems to cause trouble when being converted to exe file

I tried PAR Packer and perl2exe. In both cases I get an exe file which doesn't start, although it throughs no warnings or errors. It seems there is something in the GUI that causes the trouble.

You need to show what you tried :)

Like in PAR Packer exe file doesn't run, I encounter no problems with the code you've shared.

Actually, I did find a regression in Module::ScanDeps 1.03 if I use pp -x pm.915330.pl

but pp -c pm.915330.pl works, a.exe gets created, it runs, tk gui pops up

Replies are listed 'Best First'.
Re^2: GUI seems to cause trouble when being converted to exe file
by Microcebus (Beadle) on Jul 19, 2011 at 08:05 UTC
    Man! That's it. Using the -c option. Exe file gets slightly bigger and works now. THANK YOU!
      Really?

      I thought I had suggested that in PAR Packer exe file doesn't run ; if that was truly all it was, you would have gotten an error message along the lines of

      Unpacking file "fc257124/auto/Cwd/Cwd.dll"... Unpacking file "ffd69863/auto/Fcntl/Fcntl.dll"... $ENV{PAR_TEMP} = ... Can't locate deprecate.pm in @INC (@INC contains: CODE(0x1566694) ... CODE(0x1247a34) CODE(0x1247d34)) at if.pm line 13. BEGIN failed--compilation aborted at Switch.pm line 7. Compilation failed in require at Tk/StayOnTop.pm line 34. BEGIN failed--compilation aborted at Tk/StayOnTop.pm line 34. Compilation failed in require at script/pm.915330.pl line 46. BEGIN failed--compilation aborted at script/pm.915330.pl line 46.

      You should try to pinpoint the disconnect (or my miscommunication) -- to speed things up in the future :)