Badger::Codec::YAML - encode/decode data using YAML
use Badger::Codec::YAML; my $codec = Badger::Codec::YAML->new(); my $encoded = $codec->encode("Hello World"); my $decoded = $codec->decode($encoded);
This module implements a subclass of Badger::Codec which uses the YAML module to encode and decode data to and from YAML.
Encodes $data to YAML.
$data
$encoded = Badger::Codec::YAML->encode($data);
Decodes $data from YAML.
$decoded = Badger::Codec::YAML->decode($encoded);
This method returns a reference to the real subroutine that's doing all the encoding work, i.e. the Dump() subroutine in YAML.
Dump()
This method returns a reference to the real subroutine that's doing all the decoding work, i.e. the Load() subroutine in YAML.
Load()
Andy Wardley http://wardley.org/
Copyright (C) 2005-2009 Andy Wardley. All rights reserved.
Badger::Codecs, Badger::Codec, YAML
To install Badger, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Badger
CPAN shell
perl -MCPAN -e shell install Badger
For more information on module installation, please visit the detailed CPAN module installation guide.