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

Re: deprecate say!

Thread Previous | Thread Next
From:
Zefram
Date:
October 7, 2013 12:31
Subject:
Re: deprecate say!
Message ID:
20131007123110.GT21945@fysh.org
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
party.

-zefram

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