in reply to Getting rid of an uninitialized warning
Replace
withmy $c_enabling = param('enabling');
If $c_enabling can never have '0' as a valid input;my $c_enabling = param('enabling') || '';
otherwise
my $c_enabling = param('enabling'); $c_enabling = '' unless defined $c_enabling;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Getting rid of an uninitialized warning
by jonc (Beadle) on Jun 23, 2011 at 21:06 UTC |
In Section
Seekers of Perl Wisdom