[snip]
> my $acceptable = qr/^(?:sp|lp|ep12|ffp|vid|dvd|bx|bkk|cd|csd)$/;
>
> and then using $acceptable to do the matchings, such as
>
> grep /$acceptable/, @array
>
>
> it would be faster and more readable :-)
If the acceptable list is that large, using a hash would be TMTOWTDI :-)
#!/usr
On Wed, 2004-05-26 at 15:07, willy.k wrote:
> Jose
>
> Many thanks for replying so quickly.
> I will explain again, sorry but is complicated.
>
>
>
> ###
> I have an array called group_vals.
>
> This array can be populated by any combination of values
> e.g. /sp|lp|e