Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need assistance on the OR statement

Status
Not open for further replies.

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 &quot;XT&quot;) || ($1 ne &quot;XF&quot;))
{
@yesterdays_XML_In_Task = $xml_in_message;
@XML_In_TASK_Phase1_messages=(@XML_In_TASK_Phase1_messages,@yesterdays_XML_In_Task);
}
}
 
try

if (($1 ne &quot;XT&quot;) && ($1 ne &quot;XF&quot;))
Mike
________________________________________________________________

&quot;Experience is the comb that Nature gives us, after we are bald.&quot;

Is that a haiku?
I never could get the hang
of writing those things.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top