develooper Front page | perl.perl5.porters | Postings from July 2012

Re: [perl #114178] di/ds/ig exempt from warnings in void context

Thread Previous | Thread Next
Nicholas Clark
July 18, 2012 06:45
Re: [perl #114178] di/ds/ig exempt from warnings in void context
Message ID:
On Wed, Jul 18, 2012 at 03:35:25PM +0200, Paul Johnson wrote:

> As far as removing it is concerned, I presume that no one is writing new
> code in this way, and probably hasn't for a few years.  So the removal
> is a trade-off between a slight standardisation and simplification and
> breaking backwards compatibility with some perl4 era programs.
> I would side with keeping backwards compatibility.

One could fudge it (by increasing complexity) by making it warn in any
source file using a perl 5 construction. Probably the simplest is *just*
to set a flag if C<use> is used.

Nicholas Clark

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