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

Re: checksum of subroutine

by chromatic (Archbishop)
on Aug 10, 2012 at 20:18 UTC ( #986818=note: print w/ replies, xml ) Need Help??


in reply to checksum of subroutine

... but a coderef is only good for executing code, not for seeing the code itself.

It's enough, with the core module B::Deparse:

use B::Deparse; my $deparse = B::Deparse->new( '-p', '-sC' ); my $source = $deparse->coderef2text( \&some_func );


Comment on Re: checksum of subroutine
Download Code
Re^2: checksum of subroutine
by mnooning (Sexton) on Aug 13, 2012 at 16:58 UTC

    This looks like it will serve the case where the software modules are wrapped up in a single Perl PAR executable, wherein I cannot get at the individual files.

    This begs the question "Why would this situation ever arise? I can only tell you there are reasons.

    I love CPAN. Thanks!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://986818]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2014-08-22 04:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (146 votes), past polls