use YAML::Any to allow faster versions to be used if available
authorJoey Hess <joey@gnu.kitenet.net>
Wed, 24 Mar 2010 18:30:38 +0000 (14:30 -0400)
committerJoey Hess <joey@gnu.kitenet.net>
Wed, 24 Mar 2010 18:30:38 +0000 (14:30 -0400)
IkiWiki/Setup/Yaml.pm

index 0fc2736756d73ba099b27961a2772a769731b204..58cba4222e95517248853991bc3ebaa4e808e1bd 100644 (file)
@@ -10,7 +10,7 @@ sub loaddump ($$) {
        my $class=shift;
        my $content=shift;
 
-       eval q{use YAML};
+       eval q{use YAML::Any};
        die $@ if $@;
        IkiWiki::Setup::merge(Load($content));
 }
@@ -18,7 +18,7 @@ sub loaddump ($$) {
 sub gendump ($@) {
        my $class=shift;
        
-       eval q{use YAML};
+       eval q{use YAML::Any};
        die $@ if $@;
 
        "# IkiWiki::Setup::Yaml - YAML formatted setup file",