diff options
| author | chirvasitua <stuart-little@users.noreply.github.com> | 2021-02-01 07:04:56 -0500 |
|---|---|---|
| committer | chirvasitua <stuart-little@users.noreply.github.com> | 2021-02-01 07:04:56 -0500 |
| commit | e6ca31db9e78b036b689498efb3441f84c4cb8e2 (patch) | |
| tree | f360b1b1bff8d25caa6e79377bae0b52327a1327 | |
| parent | ac60bddb13f96402c3026283fe223388ed54fc27 (diff) | |
| download | perlweeklychallenge-club-e6ca31db9e78b036b689498efb3441f84c4cb8e2.tar.gz perlweeklychallenge-club-e6ca31db9e78b036b689498efb3441f84c4cb8e2.tar.bz2 perlweeklychallenge-club-e6ca31db9e78b036b689498efb3441f84c4cb8e2.zip | |
1st commit on 098_perl
| -rwxr-xr-x | challenge-098/stuart-little/perl/ch-1.pl | 13 | ||||
| -rwxr-xr-x | challenge-098/stuart-little/perl/ch-2.pl | 10 |
2 files changed, 23 insertions, 0 deletions
diff --git a/challenge-098/stuart-little/perl/ch-1.pl b/challenge-098/stuart-little/perl/ch-1.pl new file mode 100755 index 0000000000..2a464bdf46 --- /dev/null +++ b/challenge-098/stuart-little/perl/ch-1.pl @@ -0,0 +1,13 @@ +#!/usr/bin/perl +use warnings; +use v5.12; + +# run <script> <path-to-file> <number> + +use feature qw(signatures); +no warnings qw(experimental::signatures); + +open my $fh, "<", $ARGV[0]; +read $fh, my $txt, $ARGV[1]; +say $txt; + diff --git a/challenge-098/stuart-little/perl/ch-2.pl b/challenge-098/stuart-little/perl/ch-2.pl new file mode 100755 index 0000000000..c1c50de86f --- /dev/null +++ b/challenge-098/stuart-little/perl/ch-2.pl @@ -0,0 +1,10 @@ +#!/usr/bin/perl +use warnings; +use v5.12; + +# run <script> <target> <space-separated array entries> + +use feature qw(signatures); +no warnings qw(experimental::signatures); + +say scalar(grep {$_ < $ARGV[0]} @ARGV[1..$#ARGV]); |
