Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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 authored August 18, 2013

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  rand_text/rand_text.psgi
2  rand_text/rand_text.psgi
@@ -18,7 +18,7 @@ get '/' => sub {
18 18
         local $/ = $delimiter;
19 19
         chomp(@phrases = <$file>);
20 20
     }
21  
-    my $phrase = @phrases[rand @phrases];
  21
+    my $phrase = $phrases[rand @phrases];
22 22
     
23 23
     return $phrase;
24 24
 };

0 notes on commit d672736

Please sign in to comment.
Something went wrong with that request. Please try again.