[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: perl lint



On Thu, Nov 14, 2002 at 10:54:23AM +0100, Dominique Dumont wrote:
> Michael Heironimus <mkh01@earthlink.net> writes:
> 
> > On Sat, Nov 09, 2002 at 08:02:14PM -0500, Tom Allison wrote:
> > > is there something to clean up perl code similar to other "lint" 
> > > type applications?
> > 
> > The -w flag ("perl -w script.pl" or "#! /usr/bin/perl -w") enables lots
> > of warnings about potential problems.
> 
> You can also add in your code:
> use warnings ;
> 
> If you really want clean code, you can do:
> use warnings FATAL => 'all'; 
> 
> See perllexwarn(1) and  warnings(3perl) for more details

I missed the start of this thread, but I find putting

  use strict;

at the top of my code eliminates a whole host of errors.

-- 
Nathan Norman - Incanus Networking mailto:nnorman@incanus.net
  It doesn't matter what you are doing, emacs is always overkill.
          -- Stephen J. Carpenter



Reply to: