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...
1 parent 2bc162e commit d672736ddb8b833eef92f48289877b058cd69c9a @chromatic chromatic committed Aug 18, 2013
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;
};

0 comments on commit d672736

Please sign in to comment.