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

Re: deprecate say!

Thread Previous | Thread Next
October 7, 2013 12:31
Re: deprecate say!
Message ID:
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?

Yes.  Also $, if it prints a list.

>I don't think that has been perl culture until now.

It's a poor protocol, because it's unlikely that many library authors
will be mindful of the variability of $\.  It's a gotcha.  What you're
perceiving as Perl culture is the fact that many library authors indeed
get caught by it.  I don't think it's conventional to blame some other


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