Jonathan Lang writes: > Translating this to perl 6, I'm hoping that perl6 is smart enough to > let me say: > > s(pattern) { doit() } > > Instead of > > s(pattern) { { doit() } }
That special case is nasty if you don't know about it -- you inadvertently execute as code something which you just expected to be a string. Not a good trap to have in the language. Smylers