Serialization library for your scripts, copy lib dir into your
script directory and include 6 lines of code from the
serialize.irc example. Make sure to replace serialize.irc
with your own script name.

XStream library (http://xstream.codehaus.org/) is used for
serialization.

The following functions will be available:

$ &serialize(?var) - returns XML string with serialized variable
$ &serialize_file(?var, $file) - returns 1 if variable was serialized into file

? &deserialize($xml) - takes $xml string and returns object
? &deserialize_file($file) - reads object from file

?var means that you can serialize any type ($, @ or %)
? means that function returns the same object type that was serialized

Of course, you can have as many nested types as you like, any complex
structure can be serialized and restored.

(c) Serge, 2006
