Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Converting from Storable to YAML

by gnosti (Friar)
on Jan 23, 2011 at 07:28 UTC ( #883751=note: print w/ replies, xml ) Need Help??


in reply to Converting from Storable to YAML

If you're emphasizing extremely simple, I'd suggest looking at YAML::Tiny possibly via YAML::Any to allow for more capable backends in future.

I like YAML for serializing program state because I can read the output for debugging. Program users can send me their state files, and occasionally debug for themselves.

YAML::Tiny, like JSON, cannot handle circular data structures, objects, or code references. That may constrain how you write your code. I ended up writing my own serializing code that converts objects to hashes with a 'class' field that YAML::Tiny can handle.


Comment on Re: Converting from Storable to YAML

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (15)
As of 2015-07-01 17:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (14 votes), past polls