The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Data::Serializer::Config::Wrest - Creates bridge between Data::Serializer and Config::Wrest

SYNOPSIS

        use Data::Serializer;
        my $ser = Data::Serializer->new(
                serializer => 'Config::Wrest',
                options => {
                        Escapes => 1,
                        UseQuotes => 1,
                        WriteWithEquals => 1,
                }
        );
        my $serialized = $ser->serialize({ foo => 'bar' });
        my $deserialized = $ser->deserialize($serialized);

DESCRIPTION

Module is used internally to Data::Serializer. Use it through the Data::Serializer constructor.

The 'options' hash reference is passed to the Config::Wrest constructor. Please see the documentation for that module for details about the possible options and the defaults.

METHODS

serialize( \%DATA )

For use by Data::Serializer. Serializes the hash reference into a string.

deserialize( $STRING )

For use by Data::Serializer. Deserializes the string into a hash reference.

options()

Retrieves the constructor options for Config::Wrest.

CAVEAT

Base data structure to serialize must be a hash reference

SEE ALSO

Data::Serializer, Config::Wrest

VERSION

$Revision: 1.2 $ on $Date: 2005/09/23 10:30:23 $ by $Author: piersk $

AUTHOR

IF&L Software Engineers <cpan _at_ bbc _dot_ co _dot_ uk>

COPYRIGHT

(c) BBC 2005. This program is free software; you can redistribute it and/or modify it under the GNU GPL.

See the file COPYING in this distribution, or http://www.gnu.org/licenses/gpl.txt