in reply to Re^2: Replaying Santa Claus Golf Apocalypse with Pugs/Perl6
in thread Replaying Santa Claus Golf Apocalypse with Pugs/Perl6
For example, Pugs does not have reverse yet. And while it seems to recognize the parenless form of for, it requires an extra space not just before the loop statement, but immedaitely after it, too. So, the code takes the form:
And this is just as long as the form with parens, but less clean.my@l= =open@ARGS[0]; for @l {print @l.pop}
However, the more I see the @l.pop form, the more I like it. Thank you for pointing this out to me...
Update: I was stupid, parenless for is working just right, as TimToady suggested, I don't know, what the hell I was messing up...:-)
rg0now
|
|---|