diff options
| author | Ailbhe Tweedie <atweedie@protonmail.ch> | 2019-04-02 11:20:25 +0200 |
|---|---|---|
| committer | Ailbhe Tweedie <atweedie@protonmail.ch> | 2019-04-03 01:08:20 +0200 |
| commit | c70540c41e15aadbed7cf3df04a6a982f94059c1 (patch) | |
| tree | d6cb79aeeba6f158f4d08c71156a4caf1299c10f | |
| parent | 4606c1fea1d63e7fcda943f7f1a34932d97b1983 (diff) | |
| download | perlweeklychallenge-club-c70540c41e15aadbed7cf3df04a6a982f94059c1.tar.gz perlweeklychallenge-club-c70540c41e15aadbed7cf3df04a6a982f94059c1.tar.bz2 perlweeklychallenge-club-c70540c41e15aadbed7cf3df04a6a982f94059c1.zip | |
002-p5-01: add initial solution
| -rwxr-xr-x | challenge-002/ailbhe-tweedie/perl5/ch-01.pl | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/challenge-002/ailbhe-tweedie/perl5/ch-01.pl b/challenge-002/ailbhe-tweedie/perl5/ch-01.pl new file mode 100755 index 0000000000..645d671986 --- /dev/null +++ b/challenge-002/ailbhe-tweedie/perl5/ch-01.pl @@ -0,0 +1,11 @@ +#!/usr/bin/env perl +# +# Solution to challenge #1 of the Perl Weekly Challenge 002. +# +# TODO: I would like to add some automated testing to this solution. + +$number = '001'; + +$number =~ s/^0+//; + +print "$number\n"; |
