in reply to Converting pl to exe

Did you try
pp -c -o test2.exe exp.pl
or
pp -x -o test2.exe exp.pl
?