aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorE7-87-83 <fungcheokyin@gmail.com>2021-05-18 22:19:33 +0800
committerE7-87-83 <fungcheokyin@gmail.com>2021-05-18 22:19:33 +0800
commit63870977489f600abb9ea1a95da6579dfbdeb7c0 (patch)
treefc4af02dc77b4ef29163bdca742a1d9be0be9122
parent4f8b5ab3fb4fbe4245261fc574e3ca9d2f9412ca (diff)
downloadperlweeklychallenge-club-63870977489f600abb9ea1a95da6579dfbdeb7c0.tar.gz
perlweeklychallenge-club-63870977489f600abb9ea1a95da6579dfbdeb7c0.tar.bz2
perlweeklychallenge-club-63870977489f600abb9ea1a95da6579dfbdeb7c0.zip
elsif
-rw-r--r--challenge-113/cheok-yin-fung/perl/ch-2.pl6
1 files changed, 2 insertions, 4 deletions
diff --git a/challenge-113/cheok-yin-fung/perl/ch-2.pl b/challenge-113/cheok-yin-fung/perl/ch-2.pl
index 786996c7d2..d371237f53 100644
--- a/challenge-113/cheok-yin-fung/perl/ch-2.pl
+++ b/challenge-113/cheok-yin-fung/perl/ch-2.pl
@@ -43,8 +43,8 @@ sub consistency {
return 0;
}
}
- else {
- return 0 if $t[$ind] ne 'x';
+ elsif ($t[$ind] ne 'x') {
+ return 0;
}
}
return 1;
@@ -64,8 +64,6 @@ sub print_tree {
}
-
-
sub print_pretty_tree {
my @tr = @_;
my $hash_tree = tree_build( \@tr, 0);