On Mon, Oct 20, 2003 at 11:51:12AM +0100, Edward Wildgoose wrote: > (Probably well known by good perl hackers, but might be interesting to > others? Also see the Acme:: series on cpan of course) > > Is Acme::Bleach portable? And has anyone tried it in combination with > par? (Any nasty side effects?)
It does not currently work, because Acme::Bleach uses this technique:
open 0, $0;
eval some_func(<0>);
which opens the .exe instead of .pl. If Damian had written it that way:
seek DATA, 0, 0;
eval some_func(<DATA>);
then it will work with PAR. Suggestions on how to intercept or rewrite
the "open 0, $0" part is welcome, because it does seem very obvious to me.
At the very worst, I can ship a PAR::Filter::Bleach as an example of
input filtering, along with PAR::Filter::PodStrip.
Oh, and another question for list members. If I say:
pp -f Bleach foo.pl
should pp apply Bleach to foo.pl only, or to all modules it requires?
Should we ad another -F switch to mean "filter dependencies", so one
can say:
pp -F PodStrip -F RemoveWhitespace -f Bleach -f ProductActivation foo.pl
Or are there other better syntax/semantics suggestions?
Thanks,
/Autrijus/
pgp00000.pgp
Description: PGP signature
