The code worked for me. The only trick, it would appear, is to first run
.
I was initially inclined to downvote the node for the horrible blasphemy of posting non-Perl code in the Monastary. Then I saw in my mind's eye the OP pasting the code into a file and trying to run it...
. I have
sitting on my bedside table, but have only browsed it so far. Ruby appears to be popular in Asia, and I really enjoyed some dabbling I've done in Smalltalk, so it might be right up my alley.