I didn't know something exists like this, thanks that will be very helpful but still does this solve the problem of regular expression patterns istead of keys just as I mentioned in the first mail. " I am still dealing with the same problem. Rob has suggested me a good solution for macthing consecutive patterns like H K D but not more looser ones like for K[ED]{3,5}? L.{3}A andn my poor perl knowledge doesn't help me to generalize it: /"
The @keys array can hold regexs as well as strings:
my @keys = ('H', qr/K[ED]?/, qr/D{1,2}/);
Regards, Randy.
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>