is $var, 1, 'subst : do block preserved' unless $^P;
SKIP: {
- skip 'Perl 5.10 required to test given/when' => 4 * ($^P ? 4 : 5) + 4
- if "$]" < 5.010;
+ my $skip_count = 4 * ($^P ? 4 : 5) + 4;
+ skip 'Perl 5.10 required to test given/when'
+ => $skip_count if "$]" < 5.010;
+ skip 'Not testing deprecated given/when on Perl 5.37.10 or later'
+ => $skip_count if "$]" >= 5.037010;
eval <<'TEST_GIVEN';
BEGIN {
SKIP:
{
skip 'Perl 5.10 required to test given/when' => 30 if "$]" < 5.010;
+ skip 'Not testing deprecated given/when on Perl 5.37.10 or later'
+ => 30 if "$]" >= 5.037010;
eval <<' GIVEN_TEST_1';
BEGIN {
SKIP:
{
skip 'Perl 5.10 required to test given/when' => 30 if "$]" < 5.010;
+ skip 'Not testing deprecated given/when on Perl 5.37.10 or later'
+ => 30 if "$]" >= 5.037010;
eval <<' GIVEN_TEST_1';
BEGIN {
SKIP: {
skip 'perl 5.10 is required to test interaction with given/when' => 6
if "$]" < 5.010;
+ skip 'Not testing deprecated given/when on Perl 5.37.10 or later'
+ => 6 if "$]" >= 5.037010;
@res = eval <<'TESTCASE';
BEGIN {
[ 'eval q[', '];' ],
);
-push @blocks, [ 'given (1) {', '}' ] if "$]" >= 5.010_001;
+push @blocks, [ 'given (1) {', '}' ] if "$]" >= 5.010_001 and "$]" < 5.037_010;
my %exports = (
verbose_is => \&verbose_is,