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

Re: deprecate say!

Thread Previous | Thread Next
Leon Timmermans
October 7, 2013 14:05
Re: deprecate say!
Message ID:
On Mon, Oct 7, 2013 at 8:59 AM, Ed Avis <> 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…


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