in reply to Re^6: How to print out package code ?
in thread How to print out package code ?

Martin90:

If it's a module found on CPAN, you can always download the package, untar it and brows the source to your hearts content.

...roboticus

When your only tool is a hammer, all problems look like your thumb.

Replies are listed 'Best First'.
Re^8: How to print out package code ?
by Martin90 (Sexton) on Mar 19, 2013 at 00:13 UTC
    No it is not from CPAN it's customized module which contain obfuscated code like "ufboisbfljsbf" and before is used in script first is decoded by .so files. I need to do changes in subroutines from this module. Any debugging fails at the moment when module is loading. Have you got good advice ? At least I want to get subroutines code from this module.

      No it is not from CPAN it's customized module which contain obfuscated code like "ufboisbfljsbf" and before is used in script first is decoded by .so file

      I know it sounds kinda obvious, but I would contact support

      $deparse->coderef2text(\&sub) Returns only ";" it's all because these subs are encoded, all pure perl code works good with this method. Any ideas how to get subroutines code ? :(

        If the subroutine is not actual Perl code but (say) C code which lives in a dynamically loaded extension (.so file), then you will need a C decompiler, not a Perl decompiler.

        The best decompiler I know is IDA Pro, but I assume that if this is a bought software package, it will be much easier to get the source code from your vendor.

        Any ideas how to get subroutines code ?

        Ask the developer