What would actually stop you from building a language like Perl or Ruby from scratch?
Once you've parsed them (which is admittedly much more difficult than Perl), writing a relatively slow interpreter for the core language in C or similar wouldn't be that difficult.