From a9ca60217253cfa36cd97314e99741214db1704c Mon Sep 17 00:00:00 2001 From: James Smith Date: Tue, 19 Oct 2021 17:19:58 +0100 Subject: Update README.md --- challenge-135/james-smith/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/challenge-135/james-smith/README.md b/challenge-135/james-smith/README.md index 1681821363..c9d91e5434 100644 --- a/challenge-135/james-smith/README.md +++ b/challenge-135/james-smith/README.md @@ -45,7 +45,7 @@ It is possible to compact this slightly - buy 1 - assuming `$n` is an integer, a ```perl sub middle3compact { my$l=length(my$n=abs$_[0]); - return$l<3?'Too short':$l%2?substr$n,$l/2-1,3:'Even digits'; + $l<3?'Too short':$l%2?substr$n,$l/2-1,3:'Even digits'; } ``` -- cgit