Hey John,
Ok, I stand corrected, I guess it was something else that didn't work.
Thanks!
Tuesday, July 03, 2001, 8:38:02 AM, my MUA believes you used
Internet Mail Service (5.5.2653.19) to write:
JE> Adding another or works.
JE> $String = 0;
JE> $foo = 0;
JE> $bar = 0;
JE> print "Hello" if ($String) or ($foo) or ($bar);
JE> Set any of the vars to 1 and it prints Hello. What's not working about
JE> that...
=========================
JE> PerlGuru's,
JE> I had an if {} elsif {} and converted it to the following which
JE> I like, but now find I need to match 3 things - not 2.
JE> DoTheSub($PassedVar) if ($String eq "string") or ($foo =~ /$String/);
JE> I tried adding another "or" to the above, but that did not work (I
JE> didn't really think it would, but had to try <g>).
JE> or (AnotherSub($Var) eq "\tText")
JE> What would be the best way to run my sub (DoTheSub in the above
JE> example) if any of 3 things matched? Should I go back to:
JE> if(){ }elsif(){ }else(){ }
JE> or is another way better?
--
[EMAIL PROTECTED]
Using The Bat! (http://www.ritlabs.com/the_bat/) eMail v1.53d
Windows NT 5.0.2195 (Service Pack 1)
Why are you wasting time reading taglines?