in reply to RFC: Simulating Ruby's "yield" and "blocks" in Perl
I don't deny that it is somewhat cute, but I don't quite get the point of the exercise....
Of course "Ruby is semantically just a Perl dialect" - just as I could argue that Perl is semantically just a Python dialect...
Are languages like Perl, Python, Ruby, Javascript not all "essentially" the same?
But a lot of Ruby-features are really nice (all syntactic sugar I know, but sweet nevertheless) so I would not mind to see them incorported into the Perl-language (on the interpreter-level - not via (sorry) ugly hacks like your "yield").
In Section
Meditations