in reply to Re^5: puts vs say
in thread puts vs say

... which usually corrects newline-ed-ness automagically.

maybe I should make my my point clearer: IMHO DWIM-Magic has to be predictable and orthogonal.

Chomping only the last parameter doesn't look orthogonal¹ to me. And I doubt that the group who doesn't want chomping is smaller than the other group. If I'm wrong this situation might only be solved by providing puts() additionally to say().

I personally regularly redefine $\="\n" locally, to make print acting like say, so I think there is a wide need for say() ... but I never ever bothered about extra newlines.

Perl isn't PHP or Cobol, you can't serve every tiny group ... they always have the possibility to use special modules for their needs.

Cheers Rolf

(¹) And I don't think we should make perl even more unorthogonal ...

Replies are listed 'Best First'.
Re^7: puts vs say
by jettero (Monsignor) on Feb 28, 2009 at 17:20 UTC
    What I'm saying is: why bother with say at all. Why not write your own say that does what you want? If say is meant to be a convenience function, then it should actually *be convenient*.

    -Paul

      It is extremely convenient for me. :)

      And you didn't even know bears could type.

        It could be *more* convenient... UPDATE: but it'd be more convenient for me.

        -Paul