do not clobber $@ (RT #103061)
[p5sagit/Config-Any.git] / t / 55-yaml.t
index d042cc4..7b7b5bc 100644 (file)
@@ -1,5 +1,6 @@
 use strict;
 use warnings;
+no warnings 'once';
 
 use Test::More;
 use Config::Any::YAML;
@@ -19,9 +20,9 @@ else {
 
 # test invalid config
 {
-    my $file   = 't/invalid/conf.yml';
+    my $file = 't/invalid/conf.yml';
     my $config = eval { Config::Any::YAML->load( $file ) };
 
     ok( !$config, 'config load failed' );
-    ok( $@, "error thrown ($@)" ); 
+    ok( $@,       "error thrown ($@)" );
 }