The substitution decodes URL-encoded strings. It does the same uri_unescape in URI::Escape. CGI already decodes parameters for you. Is there any reason you're not using that module?
my $count = () = /$keyword/gi; will count the number of occurances. The () forces a list context.
In reply to Re: Counting words..
by ikegami
in thread Counting words..
by No-Lifer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |