use Modern::Perl;
use CGI qw ( -utf8 );
use Carp;
-use YAML qw/Load/;
+use YAML::XS;
use List::MoreUtils qw/uniq/;
use C4::Context;
my $syspref = C4::Context->preference($syspref_name);
$syspref = "$syspref\n\n"; # YAML is anal on ending \n. Surplus does not hurt
my $yaml = eval {
- YAML::Load($syspref);
+ YAML::XS::Load($syspref);
};
if ( $@ ) {
warn "Unable to parse $syspref syspref : $@";
my $syspref = C4::Context->preference($syspref_name);
$syspref = "$syspref\n\n"; # YAML is anal on ending \n. Surplus does not hurt
my $yaml = eval {
- YAML::Load($syspref);
+ YAML::XS::Load($syspref);
};
if ( $@ ) {
warn "Unable to parse $syspref syspref : $@";