There's more than one way to do things | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
> I think Perl's the only language which doesn't enforce parens if a function is pre-declared
Ruby never does, but probably you wanted to say "if and only if" ? The possibility to omit parenthesis is essential for many syntactic sugar and DSL approaches. Compare "has" in Moose which looks like a keyword.
updateexample
Cheers Rolf
In reply to Re^3: New Discovery!!! (sub call without parentheses)
by LanX
|
|