Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: uninitialized value in numeric gt (>) in perl

by Utilitarian (Vicar)
on Feb 23, 2011 at 14:36 UTC ( [id://889798]=note: print w/replies, xml ) Need Help??


in reply to Re: uninitialized value in numeric gt (>) in perl
in thread uninitialized value in numeric gt (>) in perl

While I agree with halfcountplus, I would note that you could perform a simple or else set $max_nb to zero as follows
my $max_nb = (Octopussy::Parameter('wizard_max_msgs'))||0;
That said, the Octopussy::Parameter('wizard_max_msgs') should probably return zero if no such parameter.

print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://889798]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2024-04-25 11:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found