in reply to "Use of uninitialized value" even though the value is defined

Where in the code do you turn on warnings?
  • Comment on Re: "Use of uninitialized value" even though the value is defined

Replies are listed 'Best First'.
Re^2: "Use of uninitialized value" even though the value is defined
by sumeetgrover (Monk) on Apr 01, 2011 at 10:03 UTC

    You can write the following code below the shebang line:

    use strict; use warnings;

    Hope this helps!

    Sumeet Grover.
      Why, when the code is not strict/warnings compliant?
Re^2: "Use of uninitialized value" even though the value is defined
by mandrake00 (Initiate) on Apr 01, 2011 at 10:26 UTC
    I am using -w option at the first line.