in reply to on to better coding (no uninitialized values)

The first thing would be to use strict. First line (after the shebang) should be:
use strict;
Probably the most important line in your script. That will force you to declare your variables with my (or our or use vars).

Another option is to, when you declare your variables, to initialize them. Something along the lines of:

my $foo = 0;
If you do that, that will definitely fix your unitialized problems.

------
/me wants to be the brightest bulb in the chandelier!

Vote paco for President!

Replies are listed 'Best First'.
Re: Re: on to better coding (no uninitialized values)
by melguin (Pilgrim) on Aug 23, 2001 at 21:11 UTC
    The first thing would be to use strict.

    I thought this was a given (along with -w), but I suppose not, huh?