Re: findbugs for Perl?



In article <1141432071.876085.69000@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
yusufm <yusufm@xxxxxxxxx> wrote:

Is there a good package like findbugs for perl code?

There are two. Their names are 'strict' and 'warnings'. If you put the
following two lines at the beginning of your Perl program, they will
point out potential bugs in your code:

use strict;
use warnings;

Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
.



Relevant Pages

  • Re: shift vs @_
    ... use strict; ... use warnings; ... $ cat prime-recursion.pl ... push @stream, $num; ...
    (perl.beginners)
  • Re: Sharing variables between modules
    ... use strict; ... use warnings; ... # Note that this must also come *before* the use Foo line. ... package Foo; ...
    (comp.lang.perl.misc)
  • Re: Dynamic directory handles?
    ... > 1) You should always enable warnings (and strict) when ... > perldoc -q filehandle ... >> sub dircount { ... > use warnings; ...
    (comp.lang.perl.misc)
  • Re: Debug Help Please
    ... If you had enabled the warnings and strict pragmas then perl would have ... foreach my $logfile { ...
    (perl.beginners)
  • Re: Calculating values of a 2d array by comparison of 2 strings
    ... use strict; ... use warnings; ... KMGYILGKGL GKNEDGIKIP VEAKINQKRE GIGYPF '; ... # get the shortest sequence length;-) ...
    (comp.lang.perl.misc)