aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohammad S Anwar <Mohammad.Anwar@yahoo.com>2019-05-02 18:30:19 +0100
committerGitHub <noreply@github.com>2019-05-02 18:30:19 +0100
commitdd201355bb0295d959b4cd8129293103bc828d37 (patch)
tree500c1e253587f80d2ab6b4fecaf473d673562d65
parent1daa4a35462e2bead1845d0d74ab62a96ed6c349 (diff)
parent7c1348bac2b8cfe68b8ffa2e01dee5aae8506ab9 (diff)
downloadperlweeklychallenge-club-dd201355bb0295d959b4cd8129293103bc828d37.tar.gz
perlweeklychallenge-club-dd201355bb0295d959b4cd8129293103bc828d37.tar.bz2
perlweeklychallenge-club-dd201355bb0295d959b4cd8129293103bc828d37.zip
Merge pull request #115 from k-mx/master
ch-2.pl
-rw-r--r--challenge-006/maxim-kolodyazhny/perl5/ch-1.pl6
-rw-r--r--challenge-006/maxim-kolodyazhny/perl5/ch-2.pl10
2 files changed, 13 insertions, 3 deletions
diff --git a/challenge-006/maxim-kolodyazhny/perl5/ch-1.pl b/challenge-006/maxim-kolodyazhny/perl5/ch-1.pl
index 5ac290fdd0..4ccfcc64a3 100644
--- a/challenge-006/maxim-kolodyazhny/perl5/ch-1.pl
+++ b/challenge-006/maxim-kolodyazhny/perl5/ch-1.pl
@@ -6,9 +6,9 @@ use 5.028.1;
use List::Util qw(sum);
s{
- (\b \d+)
- (,?\d+,)+
- (\d+ \b)
+ ( \b \d+ )
+ ( ,? \d+ , )+
+ ( \d+ \b )
(??{
# this block is treated as a pattern
# != will return '' (always match) or 1 (fail because of previous \b)
diff --git a/challenge-006/maxim-kolodyazhny/perl5/ch-2.pl b/challenge-006/maxim-kolodyazhny/perl5/ch-2.pl
new file mode 100644
index 0000000000..23e6977981
--- /dev/null
+++ b/challenge-006/maxim-kolodyazhny/perl5/ch-2.pl
@@ -0,0 +1,10 @@
+#!/usr/bin/env perl
+
+use strict;
+use warnings;
+
+use v5.028.1;
+
+use bigrat qw(bexp PI);
+
+say bexp(PI*sqrt(163),80);