23 Sep 2010 22:43:36 UTC
- Distribution: YAML-LibYAML
- Module version: 0.34
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (27)
- Testers (830 / 191 / 13)
- KwaliteeBus factor: 2
- License: perl_5
- Perl: v5.8.3
- Activity24 month
- Download (142.36KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
YAML::XS - Perl YAML Serialization using XS and libyaml
use YAML::XS; my $yaml = Dump [ 1..4 ]; my $array = Load $yaml;
libyamlis arguably the best YAML implementation. The C library is written precisely to the YAML 1.1 specification. It was originally bound to Python and was later bound to Ruby.
This module is a Perl XS binding to libyaml which offers Perl the best YAML support to date.
This module exports the functions
LoadFile. These functions are intended to work exactly like
YAML.pm's corresponding functions.
If enabled supports deparsing and evaling of code blocks.
When true (the default) strings that look like numbers but have not been numified will be quoted when dumping.
This ensures leading that things like leading zeros and other formatting are preserved.
Handling unicode properly in Perl can be a pain. YAML::XS only deals with streams of utf8 octets. Just remember this:
$perl = Load($utf8_octets); $utf8_octets = Dump($perl);
There are many, many places where things can go wrong with unicode. If you are having problems, use Devel::Peek on all the possible data points.
* YAML.pm * YAML::Syck * YAML::Tiny
Ingy döt Net <firstname.lastname@example.org>
Copyright (c) 2007, 2008, 2010. Ingy döt Net.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Module Install Instructions
To install YAML::LibYAML, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install YAML::LibYAML
For more information on module installation, please visit the detailed CPAN module installation guide.