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

Re: deprecate say!

Thread Previous | Thread Next
Ed Avis
October 7, 2013 07:07
Re: deprecate say!
Message ID:
Father Chrysostomos <sprout <at>> writes:

>Event::Logger needs to localise $\ before printing, as has always been
>the case whenever $\ is set by the main script.  Nothing new here.

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.

Ed Avis <>

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