-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 =pod I uploaded a new module to the CPAN today, L. You can use it in your tests to test the validity of in-core or on-disk YAML: lang:Perl use Test::More tests => 3; use Test::YAML::Valid; yaml_string_ok("---\nfoo: bar\n", 'string was OK'); yaml_file_ok("$FindBin::Bin/../myapp.yml", 'myapp.yml parsed'); yaml_files_ok('*.yml', 'All YAML files were OK'); # check <*.yml> Since L dies on some YAML that Angerwhale generates, I also added the option to use L to parse the YAML: use Test::YAML::Valid qw(-Syck) yaml_string_ok ...; Syck seems to be more liberal about what is and isn't valid, so it's best to stick with the defaults unless YAML segfaults on your YAML. The module has been tested on OpenBSD, Linux, Cygwin, and Strawberry Perl. Let me know if you have any problems. =cut # Easter egg. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iQCVAwUBRcLLLNAZeFPdJeQvAQImAwP/RIRfrTeCl5v+o7IouilGKi0KZ4ZZ6+lc Dinxx7SfGfLd1Uwx02OnyDf8t8Q731gaI7NsElpgElSpUhZJpxPWm6egDiAKIp5F 6/P24s7OqBQDoyabQIYpT8T9aGm9CfH4wjdylDD1PIZSaImT3hShLyyX7v1SDiIz FMebCJ6I98Q= =kJjx -----END PGP SIGNATURE-----