From: Yuval Kogman Date: Wed, 2 Sep 2009 17:26:29 +0000 (+0800) Subject: 5.005_04 compat X-Git-Tag: Try-Tiny-0.02~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2ab8fb1c8dee919dc7d6dd93a27752952e2aedd6;p=p5sagit%2FTry-Tiny.git 5.005_04 compat --- diff --git a/Makefile.PL b/Makefile.PL index 4495030..621c47b 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -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, + }, ); diff --git a/t/basic.t b/t/basic.t index bbef5d6..400b1fb 100644 --- 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" );