On Tuesday, August 19, 2003, at 05:54 PM, Dan Muey wrote:

I'm trying to figure out the best way to test a string agains a list of regexs like so:

my @regex = qw(qr(joe$) qr(^mama) qr([abc]));

I see you already got your grep() answer, but...


There's definitely no reason to use that qw() operator and plenty not to:

my @regex = (qr(joe$), qr(^mama), qr([abc]));

James


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to