chomp zappbrannigan quotes
parent
8c072f93c3
commit
7c610d84c1
|
@ -9,7 +9,9 @@ zci is_cached => 0;
|
|||
handle query => sub {
|
||||
my @quotes = share('quotes.txt')->slurp;
|
||||
my $rand = int(rand(scalar(@quotes)));
|
||||
return $quotes[$rand];
|
||||
my $quote = $quotes[$rand];
|
||||
chomp $quote;
|
||||
return $quote;
|
||||
};
|
||||
|
||||
1;
|
||||
|
|
Loading…
Reference in New Issue