5.005_04 compat
Yuval Kogman [Wed, 2 Sep 2009 17:26:29 +0000 (01:26 +0800)]
Makefile.PL
t/basic.t

index 4495030..621c47b 100644 (file)
@@ -2,11 +2,15 @@ use strict;
 
 use ExtUtils::MakeMaker;
 
+require 5.005_04;
+
 WriteMakefile(
        NAME         => 'Try::Tiny',
        VERSION_FROM => 'lib/Try/Tiny.pm',
        INSTALLDIRS  => 'site',
        SIGN         => 1,
        PL_FILES     => { },
-       PREREQ_PM    => { },
+       PREREQ_PM    => {
+               'Test::More' => 0,
+       },
 );
index bbef5d6..400b1fb 100644 (file)
--- a/t/basic.t
+++ b/t/basic.t
@@ -70,7 +70,7 @@ throws_ok {
        is( $@, "magic", '$@ untouched' );
 }
 
-is( scalar(try { qw(foo bar gorch) }), "gorch", "scalar context" ); 
+is( scalar(try { "foo", "bar", "gorch" }), "gorch", "scalar context" );
 is_deeply( [ try {qw(foo bar gorch)} ], [qw(foo bar gorch)], "list context" );