--- Autrijus Tang <autrijus@autrijus.org> wrote:
> 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.
I don't know who would be the person to do it, but starting here might be a
good idea:
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Acme-Bleach> At the very worst, I can ship a PAR::Filter::Bleach as an example of> input filtering, along with PAR::Filter::PodStrip.If worst comes to worst, yes, but getting Damian to update the module seems
less of a hack.
> 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?Good idea, but how about an option -FF to tell pp to just go ahead and filter
_everything_, dependencies and all.
=====
Tommy Butler <tommy@atrixnet.com>
phone: (817)-468-7716
6711 Forest Park Drive
Arlington, TX 76001