I think what you're looking for is:

if($node =~ /(net|gaat)/){
  do something...
}

-----Original Message-----
From: Ravi Malghan [mailto:[EMAIL PROTECTED]
Sent: Monday, March 31, 2003 2:13 PM
To: [EMAIL PROTECTED]
Subject: question about || operator


Hello: I seem to have forgotten

Can this statement be shortened
if(($node =~ /net/) || ($node =~ /gaat/))

The following does not give me the expected results
if($node =~ (/net/ || /gaat/) )

TIA
Ravi

__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to