We need to eval require instead of use to prevent double imports,
since loading YAML::Any causes symbols to be exported by default
BEGIN {
eval "use YAML::Any";
plan skip_all => "YAML::Any is required for this test" if $@;
- eval "use YAML";
+ eval "require YAML";
plan skip_all => "YAML is required for this test" if $@;
eval "require Test::Without::Module";
plan skip_all => "Test::Without::Module is required for this test" if $@;
BEGIN {
eval "use YAML::Any";
plan skip_all => "YAML::Any is required for this test" if $@;
- eval "use YAML::Syck";
+ eval "require YAML::Syck";
plan skip_all => "YAML::Syck is required for this test" if $@;
eval "require Test::Without::Module";
plan skip_all => "Test::Without::Module is required for this test" if $@;
BEGIN {
eval "use YAML::Any";
plan skip_all => "YAML::Any is required for this test" if $@;
- eval "use YAML::XS";
+ eval "require YAML::XS";
plan skip_all => "YAML::XS is required for this test" if $@;
eval "require Test::Without::Module";
plan skip_all => "Test::Without::Module is required for this test" if $@;