Sorry if this is common knowledge.
I just found an attempt to emulate parts of Ruby in Perl:

http://www.cpan.org/modules/by-category/11_String_Lang_Text_Proc/String/SIMO
N/rubyisms-1.0.readme

Mikkel