||Building Unix Tools with Ruby|
this is a nice article!
anyay, as a really nuby to ruby, I think you're coding too much in perl stile.
I think most of the ruby gurus would avoid $_ using instead an explicit variable.
Anyway, interesting stuff :)