2012-03-01 09:46:13 -08:00
|
|
|
package DDG::Goodie::PrivateNetwork;
|
|
|
|
|
|
|
|
use DDG::Goodie;
|
|
|
|
use File::ShareDir::ProjectDistDir;
|
|
|
|
use IO::All;
|
|
|
|
|
|
|
|
triggers query_clean => qr/^private (?:network|ip)s?\s*(?:(?:ips?|addresse?s?))?$/i;
|
|
|
|
|
|
|
|
zci is_cached => 1;
|
|
|
|
|
2012-03-20 19:23:09 -07:00
|
|
|
zci answer_type => "PrivateNetwork";
|
2012-03-01 09:46:13 -08:00
|
|
|
|
2012-03-18 16:09:03 -07:00
|
|
|
handle sub {
|
2012-03-18 16:20:58 -07:00
|
|
|
scalar io(dist_dir('DDG-GoodieBundle-OpenSourceDuckDuckGo').'/privatenetwork/privatenetwork.txt')->slurp,
|
|
|
|
html => scalar io(dist_dir('DDG-GoodieBundle-OpenSourceDuckDuckGo').'/privatenetwork/privatenetwork.html')->slurp
|
2012-03-18 16:09:03 -07:00
|
|
|
};
|
2012-03-01 09:46:13 -08:00
|
|
|
|
|
|
|
1;
|