From 7c610d84c1a1c8bdc8792916231c3ed6397f4f2d Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Wed, 30 May 2012 15:44:28 -0600 Subject: [PATCH] chomp zappbrannigan quotes --- lib/DDG/Goodie/ZappBrannigan.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/DDG/Goodie/ZappBrannigan.pm b/lib/DDG/Goodie/ZappBrannigan.pm index a92988202..b833a2f31 100644 --- a/lib/DDG/Goodie/ZappBrannigan.pm +++ b/lib/DDG/Goodie/ZappBrannigan.pm @@ -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;