Skip to content

Instantly share code, notes, and snippets.

@jagtalon
Created March 14, 2013 18:52
Show Gist options
  • Save jagtalon/5164108 to your computer and use it in GitHub Desktop.
Save jagtalon/5164108 to your computer and use it in GitHub Desktop.
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