develooper Front page | perl.beginners | Postings from March 2002

&&

Thread Next
From:
MarcusWillemsen
Date:
March 28, 2002 06:51
Subject:
&&
Message ID:
229a925f52.25f52229a9@compuserve.de
Hi all,


I have some arrays and like to trigger some events depending on which 
array or combination of arrays contains data. What I tried was 
something like:
snippet


if(@dates && !@themes && !@cities) {


#do something with the data in @dates


}
elsif(!@dates && @themes && !@cities) {
#do somthing with @themes
}
...
Alas! I doesn't work. Using "and" instead of "&&" doesn't help either.
Or do I have to use "&" instead. Although it doesn't work either. 
instead 

Can someone help??
Thanks



Marcus Willemsen
Online Redaktion
Juve Verlag
Agrippastr. 10
50676 Köln


tel: ++49(0)221 91 38 80 16
fax: ++49(0)221 91 38 80 18
www.juve.de
juve-newsline@juve.de
marcus.willemsen@juve.de


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About