use ExtUtils::MakeMaker;
-require 5.005_04;
+require 5.006;
WriteMakefile(
NAME => 'Try::Tiny',
'Test::More' => 0,
},
META_MERGE => {
+ dynamic_config => 0,
resources => {
homepage => 'https://github.com/doy/try-tiny.git',
repository => 'git://github.com/doy/try-tiny.git',
return 'catch';
}
finally {
- is (wantarray, undef, "Proper VOID context in finally{} 1");
+ SKIP: {
+ skip "DESTROY() not called in void context on perl $]", 1
+ if $] < '5.008';
+ is (wantarray, undef, "Proper VOID context in finally{} 1");
+ }
return 'finally';
}
finally {
- is (wantarray, undef, "Proper VOID context in finally{} 2");
+ SKIP: {
+ skip "DESTROY() not called in void context on perl $]", 1
+ if $] < '5.008';
+ is (wantarray, undef, "Proper VOID context in finally{} 2");
+ }
return 'finally';
};
}