onperl

There Is More Than One Way To Scope It

After a discussion on the local perl monger's list, and a lesson from Brian McCauley, I wanted to summarize Perl scoping with some examples.

A Game of Cards

It's summer, time to relax and have a little fun. So hows about a little game of cards? Or maybe I should have titled this: "Fun With Arrays." I actually just wanted an excuse to demonstrate a few useful techniques for working with arrays in Perl, but why not an array of playing cards?

Automated Unit Testing for JavaScript

Speak of "testing JavaScript" and most developers will conjure up images of editing an HTML file and then hitting reload on their web browser. That's probably not going to change, at least not as long as web browser support for JavaScript is so unpredictable. But if you have files of JavaScript you find yourself using more than once, you need unit tests.