Skip to content

Commit

Permalink
Update rand_text.psgi
Browse files Browse the repository at this point in the history
Rewrote list slice in scalar context to scalar access. No functional change, but probably easier for a novice to understand.
  • Loading branch information
chromatic committed Aug 19, 2013
1 parent 2bc162e commit d672736
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rand_text/rand_text.psgi
Expand Up @@ -18,7 +18,7 @@ get '/' => sub {
local $/ = $delimiter;
chomp(@phrases = <$file>);
}
my $phrase = @phrases[rand @phrases];
my $phrase = $phrases[rand @phrases];

return $phrase;
};
Expand Down

0 comments on commit d672736

Please sign in to comment.