As for anonymous multiline blocks, a while back a monstrosity was released...def test() print("You are in the method") yield 1 print("You are again back to the method") yield 2 for a in test(): print("You are in the block #{}".format(a))
In reply to Re^3: RFC: Simulating Ruby's "yield" and "blocks" in Perl
by MonkOfAnotherSect
in thread RFC: Simulating Ruby's "yield" and "blocks" in Perl
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |