dshaw21369
Programmer
- Jul 8, 2002
- 64
I'm trying to view all xml messages that do not have the task of "XT" or "XF" and store them in an array. How can I use an OR statement and get the xml messages with out the task of "XT" or "XF". This code below is giving me everything and not taking out the xml messages that have the task of "XT" or "XF".
foreach $xml_in_message (@ces_xml_in)
{
$xml_in_message =~ m~<TASK>(.*?)</TASK>~sg;
if (($1 ne "XT"
|| ($1 ne "XF"
)
{
@yesterdays_XML_In_Task = $xml_in_message;
@XML_In_TASK_Phase1_messages=(@XML_In_TASK_Phase1_messages,@yesterdays_XML_In_Task);
}
}
foreach $xml_in_message (@ces_xml_in)
{
$xml_in_message =~ m~<TASK>(.*?)</TASK>~sg;
if (($1 ne "XT"
{
@yesterdays_XML_In_Task = $xml_in_message;
@XML_In_TASK_Phase1_messages=(@XML_In_TASK_Phase1_messages,@yesterdays_XML_In_Task);
}
}