> Incorrect.  -F applies to all modules included.  This is arguably
> not the best logic -- better suggestions welcome.
>
My thought would be that if it is easy to identify the base default
modules that come with the base installation (maybe the CPAN release
list), then do not fiter those modules by default. Would speed up
quite a bit I would think. But there may be issues here - I don't
understand perl at that level :-)

> >>Try this:
> >> pp --clean -o x.exe xbook.pl
>
> No, with "--clean", when each instance is started, a new temp
> directory is created and used, so there will be no conflicts.

OK - the above works! Seems a little slower but may be psychological
:-). I also figured out that at worst case, I have 2 programs running
simultaneously that would cause a race condition. I built 2
executables with different name and that also takes care of the
problem.

(This is probably a known fact but I did not - There are 2 processes
created in the process table - one using 8MB mem, the other 2MB mem -
the latter is the process ID the temp dir gets - not sure what the
first one is. Also, the temp file created when using 'pp' to create
the executable never gets cleaned up. So during testing, after a while
a lot of these dirs build up. The files left behind by pp -F don't use
the same dir as pp by default - these also are getting left behind)

Now here are the filter results:
F:\>pp --clean -o x.exe a.pl

F:\>x -v
xbook 1.05, Copyright X-ISS 2003 [this is the expected output]

[I am now on ActiveState perl 5.8.2,]

F:\>pp --clean -f Bleach -o x.exe a.pl

F:\>x -v
[No output]

F:\>pp --clean -f Obfuscate -o x.exe a.pl
C:\WINNT\TEMP\bO0gIZzqnI syntax OK

F:\>x -v
String found where operator expected at script/a.pl line 542, near
"conformist '
'"
        (Do you need to predeclare conformist?)
syntax error at script/a.pl line 542, near "conformist ''"



Trying -F option produces a lot of other errors, so for now I'll leave
it alone.

Deepak Khosla

Reply via email to