in reply to (tye)Re2: 'print' puzzle
in thread 'print' puzzle

I've never heard of that. Perhaps it should be in perltrap.

perldoc says "No space between function name and its opening parenthesis." under "he (Larry) has other preferences that aren't so strong". So it's not a warning at all, but a style preference with no further explaination.

Replies are listed 'Best First'.
(tye)Re3: 'print' puzzle
by tye (Sage) on Nov 13, 2001 at 09:04 UTC

    Elsewhere you mention the "if it looks like a function" rule. That was created when it was figured out that putting a space between "print" and "(" sometimes got a different interpretation from "print(". At the time this was discovered, I recalled the mood of the discussion being somewhat "well, that code is ugly, but not so ugly that it should break things so we should probably fix it".

    So we have multiple bugs associated with this style. It isn't widely used (otherwise these bugs would have been found sooner) and isn't widely tested. My suggestion is to not use it.

            - tye (but my friends call me "Tye")