Category Archives: Perl

Perl Wiki Updates

A couple of folks from the Perl Wiki, Luke and Audrey, dropped by. They seem like really nice people. Zbigniew, thanks for you recommendations on working with socialtext. This will save a lot of time. It looks like a couple of my big ticket items are coming soon: wiki style links and syntax highlighting Once [...]

Posted in Perl | Tagged , | 3 Comments

Perl Wiki Discussion Summary

Thanks to everyone who responded to my perl wiki post. The responses have been enlightening. A number of people pointed me at the official perl wiki which I came across when I originally searched for perl wiki. The first couple of links I clicked on led me to believe that it was mostly abandoned. On [...]

Posted in Perl | Tagged | 10 Comments

Searching for Programming Answers

If you have a programming problem that you can’t solve yourself, what are your options? Ask your local guru Post your question in one of hundreds of forums Search for the answer using your favourite search engine. and, for semi-completeness… …give up Of these options, using a search engine is the most popular. Many developers [...]

Posted in Perl | Tagged | 7 Comments

It is Time for a High Quality Perl Wiki

Perl is my preferred language for getting things done. Why? Firstly because I already know it and secondly because I know where to look for answers. When I started learning Perl, there was only one obvious choice of scripting language. Now finally there is some real competition1, but with a modern object system, fantastic (and [...]

Posted in Perl | Tagged | 20 Comments

Watching Logfiles with Perl

I often need to process a constantly updating resource. Sometimes the resource is a complex database backed application with a current state and a list of updates. Generally in these cases the procedure is as follows: subscribe to the updates and place them on a queue process the current state process the updates, beginning with [...]

Posted in Perl | Tagged , | 1 Comment

Carp Stacktraces

Most well-written perl modules use croak or carp instead of die or warn so that you can see which line in the calling code resulted in the error message. When debugging it can be helpful to see a full stacktrace instead. The easiest option is to add a perl argument -MCarp=verbose. perl -MCarp=verbose script.pl Alternatively [...]

Posted in Perl | Tagged | 4 Comments

Another Thing Perl and PHP have in Common…

…is that a lot of ignorant people think that they both suck. Do any other Perlers get annoyed when someone who clearly has no idea of the awesome power of Perl claims "Perl sucks" ? It’s just me then. Of course, a significant difference between the two is that no-one thinks that PHP is dead [...]

Posted in Perl | Tagged , , | 2 Comments

Other Languages Have Libraries Too

Ashley Pond V.does not know PHP: “WordPress had to cover dozens or even hundreds of pieces (feeds, site map, remote content fetching, sessions, SSL, revisions, Ajax backend, logging, caching, email) I didn’t have to think about beyond configuration settings and a little glue.” I found this quite amusing. I know the CPAN is great. It [...]

Also posted in WordPress | 2 Comments

Why Work on Melody?

One of the comments on my Choosing a Blogging Engine post mentions Melody, a community fork of the Movable Type content management system which is written in Perl. Which leads me to the question in the title. Whenever I hear about people writing yet another blogging engine in Perl, Python or Ruby it brings to [...]

Also posted in WordPress | Tagged , , | Leave a comment

Choosing Database Columns Using Ido Mode

For my final riff on extracting the data dictionary using Perl DBI, I’ll demonstrate using ido mode to quickly choose and insert a database column. This was inspired by a Stuart Halloway video which shows that ido mode is useful whenever you need to choose between a list of things. ido mode provides a mechanism [...]

Also posted in Emacs | Tagged , | 2 Comments