diff options
| author | James Smith <js5@sanger.ac.uk> | 2022-09-12 14:32:43 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-12 14:32:43 +0100 |
| commit | 49aff77f5d8c1a92bec77cd4b9993324a370f5e8 (patch) | |
| tree | 9b45fc91a36fbefc1e0b3945bfbbb75fe4a3b86d /challenge-182/james-smith | |
| parent | 88d23b7e686b754c85fdfd61e8436aeaa33f20d7 (diff) | |
| download | perlweeklychallenge-club-49aff77f5d8c1a92bec77cd4b9993324a370f5e8.tar.gz perlweeklychallenge-club-49aff77f5d8c1a92bec77cd4b9993324a370f5e8.tar.bz2 perlweeklychallenge-club-49aff77f5d8c1a92bec77cd4b9993324a370f5e8.zip | |
Update README.md
Diffstat (limited to 'challenge-182/james-smith')
| -rw-r--r-- | challenge-182/james-smith/README.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/challenge-182/james-smith/README.md b/challenge-182/james-smith/README.md index f55b9d1a0c..d107730e40 100644 --- a/challenge-182/james-smith/README.md +++ b/challenge-182/james-smith/README.md @@ -40,8 +40,8 @@ this everytime the value at the entry is greater than the value at the max index ```perl sub max_index { my $m=0; - $_[$_]>$_[$m] && ($m=$_) for 0..$#_; - $m; + $_[$_] > $_[$m] && ( $m = $_ ) for 0 .. $#_; + $m } ``` |
