in reply to "Use of uninitialized value" annoying message

Add
no warnings 'uninitialized';
to your script.

EDIT

Ah, Perlmonks...

OP: How do I get rid of this warning?
Me: Do this.
OP: Thanks.
10 monkeys: LEPER OUTCAST UNCLEAN!
GrandFather: (long-winded irrelevant scolding)

Replies are listed 'Best First'.
Re^2: "Use of uninitialized value" annoying message
by kepler (Scribe) on Feb 21, 2011 at 08:45 UTC
    Thank you very much. Kind regards, Kepler

      Unless you understand why the warning is being generated and are sure that undef is a valid value you should not turn the warning off. Even if you do decide to turn off the warning, you should constrain the scope of no warnings to the smallest scope possible:

      { no warnings 'uninitialized'; $j =~ s/\;/\,/gi; }

      However it's not at all clear from your code that turning off the warning is appropriate. Make sure you understand what's going on before you opt for that solution!

      True laziness is hard work