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

Re: deprecate say!

Thread Previous | Thread Next
From:
Leon Timmermans
Date:
October 7, 2013 14:05
Subject:
Re: deprecate say!
Message ID:
CAHhgV8g5FDaY_XOFrJSVe_s_k0i2aPEKpXo6YAjtmAhb+9hRiQ@mail.gmail.com
On Mon, Oct 7, 2013 at 8:59 AM, Ed Avis <eda@waniasset.com> wrote:

>  Hang on - are you saying that *every* use of print in library code needs
> to
> be protected by localizing $\, or else document that the library's
> behaviour
> is affected by $\'s global value?
>
> I don't think that has been perl culture until now.  All the code I have
> seen
> just prints away merrily, and if somebody else breaks it by setting $\
> that is
> considered to be somebody else's fault.
>

 Generally speaking I don't think that's reasonable. But inside a tied
handler you totally should due to the unfortunate way this was implemented.
Brad's first suggestion sounds increasingly attractive…

Leon

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About