Created
March 14, 2013 18:52
-
-
Save jagtalon/5164108 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package DDG::Goodie::Test; | |
use DDG::Goodie; | |
use Data::Dumper; | |
triggers any => "test"; | |
zci answer_type => "test"; | |
zci is_cached => 1; | |
handle query => sub { | |
warn(join(", ", $loc->city, $loc->region_name, $loc->country_name)); | |
my $string = ''; | |
while(my ($key, $value) = each %{$loc}) { | |
$string .= "$key => $value\n"; | |
} | |
return $string; | |
}; | |
1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment