I am VERY new to Perl however I am learning.
I am getting this error from the compiler.
Use of uninitialized value in string eq at /usr/local/lib/perl5/site_perl/5.6.1/GFS/Event.pm line 38.
I know kinda what is causing it... $severity must be null however thats exactly what I am trying to check for.
I want to toss a message telling the user they must provide a severity if it is null. So I guess my issue here is.... I need to check for a null yet the compiler complains about this. How do I fix this?
Here is the section of code it is talking about...
my $severity = $parms{'errorSeverity'} || $parms{'err_severity'};
if ($severity eq '')
{
$this->{'STATUS'} = undef;
$this->{'STATUS_MSG'} = "You must provide a severity using -s in order to send the event. Please try again.";
return;
}
I am getting this error from the compiler.
Use of uninitialized value in string eq at /usr/local/lib/perl5/site_perl/5.6.1/GFS/Event.pm line 38.
I know kinda what is causing it... $severity must be null however thats exactly what I am trying to check for.
I want to toss a message telling the user they must provide a severity if it is null. So I guess my issue here is.... I need to check for a null yet the compiler complains about this. How do I fix this?
Here is the section of code it is talking about...
my $severity = $parms{'errorSeverity'} || $parms{'err_severity'};
if ($severity eq '')
{
$this->{'STATUS'} = undef;
$this->{'STATUS_MSG'} = "You must provide a severity using -s in order to send the event. Please try again.";
return;
}