NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
You saw rubyisms? (Score:2)
Re:You saw rubyisms? (Score:2)
Actually, I can't seem to use your 'yield' as a direct translation. I'm missing something fundamental. I put together this in Ruby (very similar to my actual problem):
That, as expected, prints 2, 4 and 7. However, attempting to translate that to Perl is not only exceedingly clumsy, it also doesn't seem to work and I can't figure out why.
Reply to This
Parent