zeroclickinfo-goodies/lib/DDG/Goodie/Ascii.pm

19 lines
290 B
Perl
Raw Normal View History

2012-03-30 09:30:25 -07:00
package DDG::Goodie::Ascii;
# ABSTRACT: ASCII
2012-03-30 09:30:25 -07:00
use DDG::Goodie;
triggers end => "ascii";
2012-03-30 09:30:25 -07:00
zci answer_type => "ascii_conversion";
zci is_cached => 1;
handle remainder => sub {
my $ascii = pack("B*", $1) if /^(([0-1]{8})*)\s+(in|to)$/;
return $ascii if $ascii;
2012-03-30 09:30:25 -07:00
return;
2012-04-12 19:46:59 -07:00
};
1;
2012-03-30 09:30:25 -07:00