2012-03-18 10:39:12 -07:00
|
|
|
package DDG::Goodie::Chars;
|
|
|
|
# ABSTRACT: Give the number of characters (length) of the query.
|
|
|
|
|
|
|
|
use DDG::Goodie;
|
|
|
|
|
|
|
|
triggers start => 'chars';
|
2012-03-18 16:52:59 -07:00
|
|
|
zci is_cached => 1;
|
2012-03-20 21:08:12 -07:00
|
|
|
zci answer_type => "chars";
|
2012-03-18 10:39:12 -07:00
|
|
|
handle remainder => sub {
|
2012-03-18 16:52:59 -07:00
|
|
|
return "Chars: " .length $_ if $_;
|
2012-03-18 10:39:12 -07:00
|
|
|
return;
|
|
|
|
};
|
|
|
|
1;
|