GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  BADGER::CODEC::YAML (3)

.ds Aq ’

NAME

Badger::Codec::YAML - encode/decode data using YAML

CONTENTS

SYNOPSIS



    use Badger::Codec::YAML;
    my $codec   = Badger::Codec::YAML->new();
    my $encoded = $codec->encode("Hello World");
    my $decoded = $codec->decode($encoded);



DESCRIPTION

This module implements a subclass of Badger::Codec which uses the YAML module to encode and decode data to and from YAML.

METHODS

    encode($data)

Encodes $data to YAML.



    $encoded = Badger::Codec::YAML->encode($data);



    decode($data)

Decodes $data from YAML.



    $decoded = Badger::Codec::YAML->decode($encoded);



encoder()

This method returns a reference to the real subroutine that’s doing all the encoding work, i.e. the Dump() subroutine in YAML.

decoder()

This method returns a reference to the real subroutine that’s doing all the decoding work, i.e. the Load() subroutine in YAML.

AUTHOR

Andy Wardley <http://wardley.org/>

COPYRIGHT

Copyright (C) 2005-2009 Andy Wardley. All rights reserved.

SEE ALSO

Badger::Codecs, Badger::Codec, YAML
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 BADGER::CODEC::YAML (3) 2011-02-02

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.