in reply to Saving code from an anonymous coderef

Maybe 5.8.1 holds the answer for you. From perldelta:
Storable
Can now store code references (via B::Deparse, so not foolproof).

So I guess YMMV.

Liz

  • Comment on Re: Saving code from an anonymous coderef

Replies are listed 'Best First'.
Re: Re: Saving code from an annoymous coderef
by flounder99 (Friar) on Oct 06, 2003 at 14:21 UTC
    Data::Dumper will use B::Deparse on coderefs if you set $Data::Dumper::Deparse to true.

    YAML will also use B::Deparse if you set $YAML::UseCode to true.

    At least with these you can look over the code B::Deparse gives you.

    --

    flounder