aboutsummaryrefslogtreecommitdiff
path: root/challenge-111/abigail/lua
diff options
context:
space:
mode:
authorMohammad S Anwar <Mohammad.Anwar@yahoo.com>2021-05-09 19:46:47 +0100
committerGitHub <noreply@github.com>2021-05-09 19:46:47 +0100
commitc0a6709039b82b284fead69c34df50ad768d03c2 (patch)
treea0cecdbeb653bcf07921b70449af35af693908cb /challenge-111/abigail/lua
parenteffa93de0086093f340909ba1ed812947866435a (diff)
parent463de2f5740e60e72b836d71affb1de52cf09ea6 (diff)
downloadperlweeklychallenge-club-c0a6709039b82b284fead69c34df50ad768d03c2.tar.gz
perlweeklychallenge-club-c0a6709039b82b284fead69c34df50ad768d03c2.tar.bz2
perlweeklychallenge-club-c0a6709039b82b284fead69c34df50ad768d03c2.zip
Merge pull request #4038 from Abigail/abigail/week-111
Abigail/week 111
Diffstat (limited to 'challenge-111/abigail/lua')
-rw-r--r--challenge-111/abigail/lua/ch-1.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/challenge-111/abigail/lua/ch-1.lua b/challenge-111/abigail/lua/ch-1.lua
index 194e55b458..eb324dfa85 100644
--- a/challenge-111/abigail/lua/ch-1.lua
+++ b/challenge-111/abigail/lua/ch-1.lua
@@ -10,7 +10,7 @@
local MATRIX_SIZE = 5
-matrix = {}
+local matrix = {}
--
-- Read in the matrix
@@ -24,7 +24,7 @@ end
-- whether the number is present in the matrix or not.
--
while true do
- target = io . read ("*number")
+ local target = io . read ("*number")
if target == nil then break end
if matrix [target]
then print (1)