Array help needed please

From: William Kolln (willy.k_at_optusnet.com.au)
Date: 05/26/04


To: beginners@perl.org
Date: Wed, 26 May 2004 21:05:49 +1000

This is a previous message from April left unanswered.....

Can Anyone Help...thanks if you can!

I have an array called group_vals.

This array can be populated by any combination of values
e.g. /sp|lp|ep12|ffp|vid|dvd|bx|bkk|cd|csd/

I want to be able to say that:

if the array contains any combination of only the values 'cd' and/or 'csd'
then do x
otherwise
if the array contains any combination of any other value other than but also
including 'cd' and/or 'csd'
then do y

William L Kolln