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

Re: storable.pm+CODE refs

by chromatic (Archbishop)
on Mar 27, 2001 at 23:00 UTC ( #67586=note: print w/replies, xml ) Need Help??


in reply to storable.pm+CODE refs

It's hard. I've tried. The best option I've found that doesn't involve mucking about in perlguts, interpreting PP code, and trying to recreate stashes and the like, is to keep around the text of an eval()d sub, or make a string that contains code to recreate the reference.

There are rumblings that The Damian is working on something to allow Data::Dumper to dump code references, and the same sort of technology will be much easier to attach to Storable. For now... good luck.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2023-12-04 12:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (25 votes). Check out past polls.

    Notices?