sanku has asked for the wisdom of the Perl Monks concerning the following question:

hi monks, I need a favor. Actually i would like to convert a perl program to byte code and i have done that by using the following syntax perlcc -B <file name> (it will convert perl program to byte code) now i would like to know weather is it possible to convert a byte code perl program to perl source code. Thanks in advance...

Replies are listed 'Best First'.
Re: perl bytecode doubt
by ikegami (Patriarch) on Apr 08, 2009 at 06:09 UTC

    perlcc and Perl bytecode has never been completed, has never worked reliably, was slower than parsing Perl, was constantly out of date, and was scrapped in 5.10.

    But yes, you can inspect the code tree (B::Concise) and even recreate the source quite accurately from it (B::Deparse).

      hi ikegami, Thank a lot but i would like to encode my perl code and in any ways it should be decode coded once again is there any way in perl to do like this.
Re: perl bytecode doubt
by Anonymous Monk on Apr 08, 2009 at 06:07 UTC
    Yes, it is possible.