The module doesn't have searching capabilities -- only read capabilities. I know CGI.pm will do that stuff for me, but I like doing it myself (maybe I'm wierd). The queries don't seem to affect how the script runs (it seems random). Maybe the regexp's could be set up different; I'm not a hardcore perl programmer. If it works, I'm happy. If it doesn't, I try to fix it.
I can't remember why socket.pm is in there. I'm sure there was a good reason for it; it's been too long.