aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohammad S Anwar <Mohammad.Anwar@yahoo.com>2019-10-05 03:44:19 +0100
committerGitHub <noreply@github.com>2019-10-05 03:44:19 +0100
commitb8b7596131444de979ea319c1d6c7137e928d379 (patch)
tree1adb4805de25f929e55ad5df4a6a9d1c242ddcb9
parentb42926fcd488f3570a7a43376c3d1312daa19488 (diff)
parent9af28319b85b61fe41266fcf8ffa9cb3424fb9e7 (diff)
downloadperlweeklychallenge-club-b8b7596131444de979ea319c1d6c7137e928d379.tar.gz
perlweeklychallenge-club-b8b7596131444de979ea319c1d6c7137e928d379.tar.bz2
perlweeklychallenge-club-b8b7596131444de979ea319c1d6c7137e928d379.zip
Merge pull request #718 from jmaslak/joelle-28-2-2
Joelle's solution to 28.2 in P5
-rwxr-xr-xchallenge-028/joelle-maslak/perl5/ch-2.pl8
1 files changed, 8 insertions, 0 deletions
diff --git a/challenge-028/joelle-maslak/perl5/ch-2.pl b/challenge-028/joelle-maslak/perl5/ch-2.pl
new file mode 100755
index 0000000000..fd12303a28
--- /dev/null
+++ b/challenge-028/joelle-maslak/perl5/ch-2.pl
@@ -0,0 +1,8 @@
+#!/usr/bin/env perl
+use v5.10;
+use strict;
+use warnings;
+
+# Sorry, couldn't resist doing *something* more than the more obvious
+# solutions...
+say join( ":", map { sprintf "%02d", $_ } reverse( (localtime)[ 0 .. 2 ] ) );