in reply to Re: Serializing code refs
in thread Serializing code refs

Thanks for the interesting pointer, I guess this won't be solved gracefully until the advent of Perl6. I should have mentioned that I'm using Perl 5.6.1 on Debian stable, for which I'm sure B::Bytecode is not intended :)

Running the subroutine source through Data::Dumper is the plan for production, just my mind wouldn't let go of the idea since its quite easy in Python.

Replies are listed 'Best First'.
Re^3: Serializing code refs
by ysth (Canon) on Feb 26, 2005 at 00:25 UTC
    B::Bytecode is a core module, and is included in 5.6.1.
      Thanks for pointing that out, there it is under my nose!
Re^3: Serializing code refs
by BUU (Prior) on Feb 25, 2005 at 06:48 UTC
    Er, but why do you *want* the bytecode?
      To save the cost of re-evaluating the source when the routine is loaded.