in reply to Getting rid of an uninitialized warning

Correct me if I'm wrong, but I believe enabling can either be present with value 'on' or absent.

If so, the provided solutions are overkill and all you need is

my $c_enabling = param('enabling') ... if ($c_enabling)

Replies are listed 'Best First'.
Re^2: Getting rid of an uninitialized warning
by jonc (Beadle) on Jun 23, 2011 at 21:08 UTC

    Ah, I see, just check if there is a value there. Genius.

    Thanks!

    Re-phrased Question: Are there any possible negative outcomes from using the methods presented by others, where the conditional statement includes "the defined -or operator"?

      I don't understand the question.