Each number in @your_list becomes $_ one at a time. It does the modulo if true does the first operation after ? or if false then after the :. Short and sweet, and you will get there.
Wags ;) -----Original Message----- From: Bryan R Harris [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 10:52 To: [EMAIL PROTECTED] Subject: Re: probably a simple question > $_ % 2 ? print "blue\n" : print "red\n" foreach (@your_list); This actually works?! Very strange notation, how does the compiler see this line? I assume the mod operator evaluates to 1-true or 0-false, what does the "?" do? What does the ":" do? How do you have a foreach at the end of a line like that? Why do I get the feeling I'm never going to graduate from this list... =) - B -- 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]