YAML::Old

Old/Classic Perl YAML Module
Download

YAML::Old Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Ingy d%uFFFDt Net
  • Publisher web site:
  • http://search.cpan.org/~ingy/

YAML::Old Tags


YAML::Old Description

Old/Classic Perl YAML Module YAML::Old is the old YAML Perl module. The old YAML.pm that was on CPAN from the beginning of 2002 to the end of 2008. YAML.pm has been made into an interface only module.For almost all of your old code you don't need to change anything. This still works: use YAML; my $clone = Load Dump $object;The difference is that now (the new) YAML.pm will search for the best YAML implementation module available on your system. See YAML::Any. If you really need the behavior of the old YAML.pm, do this: use YAML::Old; my $clone = Load Dump $object;or this: use YAML -Old; my $clone = Load Dump $object;The rest of this documentation has largely been left alone. I changed YAML.pm to YAML::Old. Later I'll revamp it in more detail.SYNOPSIS use YAML::Old; # Load a YAML stream of 3 YAML documents into Perl data structures. my ($hashref, $arrayref, $string) = Load(< < '...'); --- name: ingy age: old weight: heavy # I should comment that I also like pink, but don't tell anybody. favorite colors: - red - green - blue --- - Clark Evans - Oren Ben-Kiki - Ingy döt Net --- > You probably think YAML stands for "Yet Another Markup Language". It ain't! YAML is really a data serialization language. But if you want to think of it as a markup, that's OK with me. A lot of people try to use XML as a serialization format. "YAML" is catchy and fun to say. Try it. "YAML, YAML, YAML!!!" ... # Dump the Perl data structures back into YAML. print Dump($string, $arrayref, $hashref); # YAML::Old::Dump is used the same way you'd use Data::Dumper::Dumper use Data::Dumper; print Dumper($string, $arrayref, $hashref); Requirements: · Perl


YAML::Old Related Software