From 2ace3148f63589730dce28d391049eccbd8054ff Mon Sep 17 00:00:00 2001 From: drbaggy Date: Tue, 29 Jun 2021 07:14:47 +0100 Subject: tidied up object code - and fixed index code to be shorter --- challenge-119/james-smith/perl/ch-2.pl | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/challenge-119/james-smith/perl/ch-2.pl b/challenge-119/james-smith/perl/ch-2.pl index a99e0de0a5..e23549d1df 100644 --- a/challenge-119/james-smith/perl/ch-2.pl +++ b/challenge-119/james-smith/perl/ch-2.pl @@ -16,11 +16,10 @@ is( no_11_array( $_->[0] ), $_->[1] ) foreach @TESTS; is( no_11_object( $_->[0] ), $_->[1] ) foreach @TESTS; cmpthese(10_000,{ - 'filter' => sub { no_11_filter($_->[0]) foreach @TESTS; }, - 'filter' => sub { no_11_filter($_->[0]) foreach @TESTS; }, - 'object' => sub { no_11_object($_->[0]) foreach @TESTS; }, - 'regex' => sub { no_11_filter_regex($_->[0]) foreach @TESTS; }, - 'array' => sub { no_11_array( $_->[0]) foreach @TESTS; }, + 'filter' => sub { no_11_filter( $_->[0] ) foreach @TESTS; }, + 'regex' => sub { no_11_filter_regex( $_->[0] ) foreach @TESTS; }, + 'object' => sub { no_11_object( $_->[0] ) foreach @TESTS; }, + 'array' => sub { no_11_array( $_->[0] ) foreach @TESTS; }, }); done_testing(); -- cgit