diff options
| author | Maxim Kolodyazhny <maxim@rydlab.ru> | 2019-10-21 14:58:49 +0500 |
|---|---|---|
| committer | Maxim Kolodyazhny <maxim@rydlab.ru> | 2019-10-21 15:09:15 +0500 |
| commit | c8ed06a6ac9b21391ab165f4a7f897cd92e4df34 (patch) | |
| tree | ebb696800094a7980c82de0b2926aa2642b17ea3 | |
| parent | 171580e3ff4723e0308253cf7fb43abf9c1626b1 (diff) | |
| download | perlweeklychallenge-club-c8ed06a6ac9b21391ab165f4a7f897cd92e4df34.tar.gz perlweeklychallenge-club-c8ed06a6ac9b21391ab165f4a7f897cd92e4df34.tar.bz2 perlweeklychallenge-club-c8ed06a6ac9b21391ab165f4a7f897cd92e4df34.zip | |
challenge-031.1 by Maxim Kolodyazhny
| -rw-r--r-- | challenge-031/maxim-kolodyazhny/perl5/ch-1.pl | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/challenge-031/maxim-kolodyazhny/perl5/ch-1.pl b/challenge-031/maxim-kolodyazhny/perl5/ch-1.pl new file mode 100644 index 0000000000..015c03f4b5 --- /dev/null +++ b/challenge-031/maxim-kolodyazhny/perl5/ch-1.pl @@ -0,0 +1,10 @@ +#!/usr/bin/env perl + +use strict; +use warnings; + +sub div { + my ($x, $y ) = @_; + + 42^$y^42 ? $x / $y : undef; +} |
