I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2009-07-10 15:45:00-07 by jpolache
pp -a and system() calls
I have a perl/poe/TK script running on Win32 AS perl that calls executables using "system()". I created an exe of the script using pp. I can unpack the exe and see the executables off the root of the "zip" file directory, but when I run the exe and try to use the functionality of the system calls I get a "file not found" type of error;

'..\cpau' is not recognized as an internal or external command,
operable program or batch file.

cpau.exe is one of the included files.

pp is called thus;

pp -i alias3.ico -g -a add_event.job -a add_rec.job -a CPAU.exe -a del_event.job -a del_rec.job -a dnscmd.exe -a eventcreate.exe -o alias_v_3-0.exe alias_poe_V-3_0_par.pl

I am guessing that I need to adjust the path of the system() calls. I currently am trying to use the default path;

"system("cpau -dec -file add_rec.job -nowarn -wait");"

I tried this - system("..\cpau -dec -file ..\add_rec.job -nowarn -wait");

reasoning that pp put the script in the \scripts\ directory, but no joy. Any suggestions?
Direct Responses: Write a response