in reply to Re^5: puts vs say
in thread puts vs say
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: puts vs say
by jettero (Monsignor) on Feb 28, 2009 at 17:20 UTC | |
by Lawliet (Curate) on Feb 28, 2009 at 19:30 UTC | |
by jettero (Monsignor) on Feb 28, 2009 at 20:27 UTC | |
by Lawliet (Curate) on Mar 01, 2009 at 00:32 UTC |