Hello,

I know it's a dummy question, however I could not find a quick answer in
perl documentation. 

So my question: is any form of "logical-IN" operator in perl? I.e. I have a
scalar $var and a list @colors = ['red', 'yellow', 'green']. All I want is
to check

if ($var in @color) {
        traffic_lite($var)
}

How could I realise this code in perl?

TIA,
Tim

----------------------------------------------------------------
(EXTERN) CHAKIROV, Timour (TZ CIS / DS ESQ3)

Robert Bosch GmbH          Tel:     +49 (0) 711-811- 3 00 48
Postfach 30 02 20          Fax:     +49 (0) 711-811- 3 18 00 
D-70442 Stuttgart          e-mail: [EMAIL PROTECTED]
Besucher: Wernerstr.51, Fe533/3, D-70469 Stuttgart-Feuerbach
_______________________________________________
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to