/lib/DDG/Spice/Expatistan.pm
Perl | 16 lines | 10 code | 5 blank | 1 comment | 1 complexity | 1c4e256d1d06eabe43a11fe791afa702 MD5 | raw file
Possible License(s): Apache-2.0
- package DDG::Spice::Expatistan;
- # ABSTRACT: Compare cities based on cost of living
- use strict;
- use DDG::Spice;
- triggers any => "cost of living";
- spice to => 'https://www.expatistan.com/api/spice?q=$1&api_key={{ENV{DDG_SPICE_EXPATISTAN_APIKEY}}}';
- handle query_lc => sub {
- return $_ if $_;
- return;
- };
- 1;