From ea5e94b9fccd34813db40b04c286e76b30b47c59 Mon Sep 17 00:00:00 2001 From: Jörg Sommrey <28217714+jo-37@users.noreply.github.com> Date: Tue, 23 Aug 2022 11:01:29 +0200 Subject: Solution to task 1 --- challenge-179/jo-37/perl/ch-1.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 challenge-179/jo-37/perl/ch-1.sh diff --git a/challenge-179/jo-37/perl/ch-1.sh b/challenge-179/jo-37/perl/ch-1.sh new file mode 100755 index 0000000000..fbf496c437 --- /dev/null +++ b/challenge-179/jo-37/perl/ch-1.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +perl -MLingua::EN::Numbers=num2en_ordinal -E "say num2en_ordinal $1" -- cgit From fc1d2d045a1151eab74dfb69dea9fd2736c24023 Mon Sep 17 00:00:00 2001 From: Jörg Sommrey <28217714+jo-37@users.noreply.github.com> Date: Tue, 23 Aug 2022 11:01:46 +0200 Subject: Solution to task 2 --- challenge-179/jo-37/perl/ch-2.pl | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100755 challenge-179/jo-37/perl/ch-2.pl diff --git a/challenge-179/jo-37/perl/ch-2.pl b/challenge-179/jo-37/perl/ch-2.pl new file mode 100755 index 0000000000..4b0f69da83 --- /dev/null +++ b/challenge-179/jo-37/perl/ch-2.pl @@ -0,0 +1,37 @@ +#!/usr/bin/perl + +use v5.16; +use List::MoreUtils 'minmax'; +use Math::Round 'round'; + +die < Date: Fri, 26 Aug 2022 16:48:16 +0200 Subject: Fix for task 2 --- challenge-179/jo-37/perl/ch-2.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/challenge-179/jo-37/perl/ch-2.pl b/challenge-179/jo-37/perl/ch-2.pl index 4b0f69da83..5ff1c52ff4 100755 --- a/challenge-179/jo-37/perl/ch-2.pl +++ b/challenge-179/jo-37/perl/ch-2.pl @@ -2,7 +2,7 @@ use v5.16; use List::MoreUtils 'minmax'; -use Math::Round 'round'; +use Math::Utils 'floor'; die <