Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: Perl Decompile

by Aristotle (Chancellor)
on Sep 21, 2004 at 04:46 UTC ( #392567=note: print w/replies, xml ) Need Help??


in reply to Re: Perl Decompile
in thread Perl Decompile

the original source code is not stored internally in verbatim form. It is encoded.

That is why I said “more or less”. :-) My point was that the actual Perl source is stored in the binary, whether it is encoded or not, while the internal representation differs greatly with B::C/B::CC.

Makeshifts last the longest.

Replies are listed 'Best First'.
Re^3: Perl Decompile
by CountZero (Bishop) on Sep 21, 2004 at 19:37 UTC
    Pray, tell me Aristotle why would a compiled binary save the source text (encoded or not)? It seems to me that it would just eat up space, unless they use the source text as input to an embedded Perl-system. But that would be cheating wouldn't it?

    CountZero

    "If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law

      That's what they do. The source is decrypted on the fly and fed to an embedded perl interpreter.
      Why? Well, this is Perl we're talking about, where apparently we want to parse anything we please, anytime we please. Using your source at runtime may bring to mind evil Obfuscated Perl contest entries, but it's sometimes very useful, and is in fact how modules like Pod::Usage work.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2021-12-04 08:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    R or B?



    Results (30 votes). Check out past polls.

    Notices?