develooper Front page | perl.perl5.porters | Postings from March 2000

RE: [PATCH 5.6.0-RC1] more warnings tidy ups

From:
paul.marquess
Date:
March 15, 2000 04:02
Subject:
RE: [PATCH 5.6.0-RC1] more warnings tidy ups
Message ID:
5104D4DBC598D211B5FE0000F8FE7EB2067FE5A3@mbtlipnt02.btlabs.bt.co.uk
From: Hugo [mailto:hv@crypt.compulink.co.uk]
 
> In <5104D4DBC598D211B5FE0000F8FE7EB2067FE59F@mbtlipnt02.btlabs.bt.co.uk>,
> paul. marquess@bt.com writes:
> :
> :  * h2xs.PL now includes a "use warning" in the .pm file it creates.
> 
> Can you explain what the benefit of this is?

For the same reason we put a "use strict" at the top of the .pm file that
h2xs generates. We are trying to encourage good coding practice. 

> Independently of that, is there any reason not to replace the 'use Carp'
> in warnings.pm with a require() in sub warn {}?

None than I can think of. Does it make much of a difference?

Paul



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About