in reply to Re: Breaking a Filter::decrypt like source filter
in thread Breaking a Filter::decrypt like source filter

It's in the XS file (I don't have the sources of it, just the libryry file).
I'd think it's like in Filter::decrypt, where it goes like this:
BOOT: /* Check for the presence of the Perl Compiler */ if (gv_stashpvn("B", 1, FALSE)) croak("Aborting, Compiler detected") ;

Replies are listed 'Best First'.
Re^3: Breaking a Filter::decrypt like source filter
by diotalevi (Canon) on Jan 24, 2007 at 21:30 UTC

    So rename it. You'll need to edit B.pm, B.xs, O.pm, and B/Deparse.pm. Or cause Filter::decrypt to load prior to B::Deparse so its BOOT is done in advance.

    perl -MFilter::decrypt -MO=Deparse ...

    ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊

      What can I say. Simply removing the
      use Filter::decrypt;
      from the file and instead invoking it from command line in the order you said did the trick. Sometimes it's so easy you don't even see it...
      Great! Thanks a lot!

        You probably don't even need to edit the file. You can load things like that multiple times.

        ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊