in reply to the search string and me
Sure, sounds easy enough...
#!/usr/bin/perl -T -- -*- cperl -*- $==$ENV{'CONTENT_LENGTH'};for(split/&/,($=>0)?(map{read(STDIN,$.,$_)} $.):($ENV{'QUERY_STRING'})){s;\+; ;g;($:,$,)=map{s;%(..);pack("c",hex $1);ge;$_}split(/=/,$_);$_{$:}=$,;}$\="<html>$/<head><title>CGI home" ."work</title></head><body><table><tbody>".(join$/,map{"<tr><td>$_</" ."td><td>$_{$_}</td></tr>"}keys%_)."</tbody></table></body></html>"; $_="Content-type: text/html$/$/";print;
With a little more work I could probably whip out a version that uses closures, DBD::mysql, and possibly ACME::Bleach
$;=sub{$/};@;=map{my($a,$b)=($_,$;);$;=sub{$a.$b->()}} split//,".rekcah lreP rehtona tsuJ";$\=$ ;->();print$/
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: the search string and me
by jonnyfolk (Vicar) on Sep 12, 2003 at 11:46 UTC | |
by jonadab (Parson) on Sep 12, 2003 at 13:49 UTC |