http://www.perlmonks.org?node_id=1024262


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

$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 ? :(

Replies are listed 'Best First'.
Re^10: How to print out package code ?
by Corion (Patriarch) on Mar 19, 2013 at 13:09 UTC

    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.

      Ok, thanks for help ;]
Re^10: How to print out package code ?
by Anonymous Monk on Mar 19, 2013 at 13:02 UTC

    Any ideas how to get subroutines code ?

    Ask the developer