Click to See Complete Forum and Search --> : [RESOLVED] Problem with logical operators or conditionals?


halldorr
04-06-2009, 02:53 PM
I have the following code that seems to be causing an issue:

Now, this code is inherited and I'm not an expert in Perl by any stretch of the imagination. However, the final elsif statement seems to be causing an issue. Was wondering if anyone saw anything offhand wrong with that particular line.


if ($email =~ /iglide/)
{
#DO NOTHING
}
elsif ($email =~ /yahoo/)
{
#DO NOTHING
}
elsif ($std_reason eq 'domain_error' and $reason =~ /Connection timed out/i)
{
#DO NOTHING
}