Sun, 06 Jul 2008

Repair Guy

I hope everyone had a good holiday. At least, those of you here in the United States, where it was a holiday. I spent my weekend making fixes to my web sites. Yes, sad, nut true. Having a web site is like having a dog. It must be fed, walked, and occasionally de-wormed. I only mention it because I fixed a long standing bug with search and permalinks on this site. So get ready for my geeky explanation.

All my code is written in Perl and it interfaces to the web using Cgi.pm, the standard module for doing this stuff in Perl. One thing my scripts need to do is get their own url (the address you type into a browser window.) The function that gets this information is broken on my Web hosting service for some unknown reason. So I had to write my own. It fetches some of the environment varbles that are passed to the script and parses the information it need out of them. I assume Cgi.pm does the same thing, but the environment variables it uses are configured in some non-standard way on my system. So everything should be working now.

/code/ | permanent link

Powered by WebRing.