Skip to content

Commit 840739d

Browse files
author
Yogansh Sharma
committed
Added perl support
1 parent 78bbe24 commit 840739d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

run

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,9 @@ run() {
204204
go run "$FILE"
205205
fi
206206

207+
elif [[ ${FILE#*.} == pl ]]; then
208+
perl "$FILE"
209+
207210
else
208211
_ERROR_UFTC_
209212
_EXIT_
@@ -235,7 +238,7 @@ for arg in "$@"; do
235238
echo
236239
;;
237240

238-
*".c" | *".cpp" | *".py" | *".rs" | *".java" | *".sh" | *".js" | *".go")
241+
*".c" | *".cpp" | *".py" | *".rs" | *".java" | *".sh" | *".js" | *".go"| *".pl")
239242
FILE_LOCATION=$arg
240243
if [[ ! -f $FILE_LOCATION ]]; then
241244
_ERROR_UFTC_

0 commit comments

Comments
 (0)