wes has asked for the wisdom of the Perl Monks concerning the following question:
But this does:my $search = $cgi->param("query").'%'; utf8::decode($search); # database calls here...
And switching to Digest::Perl::MD5 doesn't work. Could it have something to do with passing to XS? Is there a Better Way to do this?my $search = $cgi->param("query").'%'; use Digest::MD5 qw(md5_hex); utf8::decode($search); md5_hex($search); # database calls here...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: UTF spooky action
by ikegami (Patriarch) on Apr 17, 2009 at 23:32 UTC | |
by wes (Initiate) on Apr 20, 2009 at 17:34 UTC |