moving on
Saturday, September 4th, 2010For years, I have done the vast majority of my web programming in Perl. It’s a powerful, flexible language, excellent for CGI programming. Many of its features, especially associative arrays and regular expressions, are so well integrated into the core language that they make coding a particularly genial activity. There are few tasks for which Perl is an unsuitable choice; if I were so foolish as to make a list of these, no doubt someone else could point to an example of, say, Perl performing process control of a nuclear power plant.
Due to its recent popularity, I’ve dabbled over the years with PHP as well, and found it great for the tasks for which it was specifically designed and less than great in some other areas. The quality and consistency of its documentation is patchy and its OOP model has only recently fully evolved.
However, I’ve taken the plunge and I’m moving across to using PHP for all my web programming. I want to do more in the way of mobile devices; this made the previous mix of HTML, CSS, Perl, PHP and Javascript untenable. I could not readily achieve fully conforming mobile device web pages with this mix, so I’m in the process of replacing my Perl modules with PHP versions and, in the process, eliminating as much Javascript as possible. This will enable me to tailor the pages rendered from my website to the particular device and user agent, desktop or mobile, requesting the page. So far, the experience has been quite enjoyable and I have not found any insurmountable problems.
The modules which I’ve already fully ported include the locations.module, sitesearch.module, guestbook.module and validlinks.module, with more of them to come shortly.

