Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^9: How to print out package code ?

by Martin90 (Sexton)
on Mar 19, 2013 at 11:03 UTC ( #1024262=note: print w/replies, xml ) Need Help??


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 (Pope) 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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1024262]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2018-01-21 04:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (227 votes). Check out past polls.

    Notices?