Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update rand_text.psgi

Rewrote list slice in scalar context to scalar access. No functional change, but probably easier for a novice to understand.
  • Loading branch information...
commit d672736ddb8b833eef92f48289877b058cd69c9a 1 parent 2bc162e
@chromatic chromatic authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  rand_text/rand_text.psgi
View
2  rand_text/rand_text.psgi
@@ -18,7 +18,7 @@ get '/' => sub {
local $/ = $delimiter;
chomp(@phrases = <$file>);
}
- my $phrase = @phrases[rand @phrases];
+ my $phrase = $phrases[rand @phrases];
return $phrase;
};
Please sign in to comment.
Something went wrong with that request. Please try again.