in reply to help in ruby code to perl

perldoc perlfunc
perldoc -f index
perldoc -f substr

Just curious, but if you've got a perfectly working ruby program already, any particular reason for switching?