misoldgit wrote:
BUT I think I've found the issue. The contents of @INC are different
when the code is run natively to when it's run from the .exe:

When running the program .pl file:

@INC = C:/Perl/site/lib C:/Perl/lib .

When running the program via a .exe file:

@INC = C:\DOCUME~1\misoldgit\LOCALS~1\Temp\par-misoldgit
\cache-1179417278/inc/lib C:\DOCUME~1\misoldgit\LOCALS~1\Temp\par-
misoldgit\cache-1179417278/inc CODE(0xd5952c) .

So I manually re-assigned @INC to the correct paths within the program
and voila! it works.

Guys, many thanks for all your help!

If I read this correctly, you set up the .exe somehow to use C:\Perl\... and not the one under your par-misoldgit tree. I do not know how to do that but I do not think that is what you want to do.

I assume your target machines do not have Perl installed. You want to use the @INC that was originally in the .exe because it will be pointing to the Perl code wherein the .exe unpacks it on any target machines.

Reply via email to