Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #6 from chromatic/patch-2

Update rand_img.psgi
  • Loading branch information...
commit f9b00995274d30fb43aba32e8d987efe67546ed6 2 parents 9317855 + 191577f
Dave Cross authored August 18, 2013

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  rand_image/rand_img.psgi
4  rand_image/rand_img.psgi
@@ -11,7 +11,7 @@ my $img_dir = 'public/img';
11 11
 get '/' => sub {
12 12
     opendir my $dir, $img_dir or die $!;
13 13
     my @imgs = grep { -f "$img_dir/$_" } readdir $dir;
14  
-    my $img = @imgs[rand @imgs];
  14
+    my $img = $imgs[rand @imgs];
15 15
     
16 16
     warn $img;
17 17
     
@@ -26,4 +26,4 @@ get '/test' => sub {
26 26
     return '<img src="/" />';
27 27
 };
28 28
 
29  
-dance;
  29
+dance;

0 notes on commit f9b0099

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