develooper Front page | perl.perl5.porters | Postings from October 2013

Re: deprecate say!

Thread Previous | Thread Next
Tom Christiansen
October 6, 2013 00:28
Re: deprecate say!
Message ID:

Rafael Garcia-Suarez <> wrote
   on Sat, 05 Oct 2013 22:12:36 +0200: 

>On 5 October 2013 22:03, Brad Gilbert <> wrote:
>> Why isn't `say FILEHANDLE LIST` the same as
>> `print FILEHANDLE LIST, "\n"` ?

>You mean
>{ local $\; print FILEHANDLE LIST, "\n" }
>and we're back to the initial problem.

>> or
>> `print FILEHANDLE LIST, ($\ // "\n")`

>That would be an incompatible change (and a confusing semantic).

Perhaps, but it’s certainly what I always expected it to do.
I believe in perl6, it may actually do that, or its moral equivalent.

The hardcoded \n instead of $\ has always seemed like a bug to me,
a design bug or a concept bug or something like that.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About