BigLug has asked for the wisdom of the Perl Monks concerning the following question:
Now the resulting object is complex and large and takes a fair bit of work to put together so what I want to to is be able to save the object to disk.new ObjectName( code => sub { do some perl stuff with @_ } );
The problem though (as you can guess) is accessing the code in the coderef. I want to be able to save it in some manner. Now I don't need to keep the perl code itself. If there's some way of storing the bytecode or anything else that I can at least execute once read back from a file, then I'm happy.
Thanks and cheers
Rick
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Saving code from an anonymous coderef
by liz (Monsignor) on Oct 06, 2003 at 09:22 UTC | |
by flounder99 (Friar) on Oct 06, 2003 at 14:21 UTC | |
|
Re: Saving code from an anoymous coderef
by RMGir (Prior) on Oct 06, 2003 at 12:58 UTC | |
|
Re: Saving code from an anonymous coderef
by etcshadow (Priest) on Oct 06, 2003 at 19:52 UTC |