How a Perl script helped me learn Ruby