in reply to uninitialized value in numeric gt (>) in perl
It would seem this has to be $max_nb, since $total is initialized to 0. Ie, Octopussy::Parameter('wizard_max_msgs') is returning undef.
You could check that by throwing in something:
my $max_nb = Octopussy::Parameter('wizard_max_msgs'); die "$max_nb undefined!" unless (defined $max_nb);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: uninitialized value in numeric gt (>) in perl
by Utilitarian (Vicar) on Feb 23, 2011 at 14:36 UTC |