Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Update rand_text.psgi #5

Merged
merged 1 commit into from

2 participants

@chromatic

Rewrote list slice in scalar context to scalar access. No functional change, but probably easier for a novice to understand.

@chromatic chromatic Update rand_text.psgi
Rewrote list slice in scalar context to scalar access. No functional change, but probably easier for a novice to understand.
d672736
@davorg davorg merged commit 9317855 into davorg:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 19, 2013
  1. @chromatic

    Update rand_text.psgi

    chromatic authored
    Rewrote list slice in scalar context to scalar access. No functional change, but probably easier for a novice to understand.
This page is out of date. Refresh to see the latest.
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;
};
Something went wrong with that request. Please try again.