> On Tue, Aug 19, 2003 at 05:54:42PM -0500, Dan Muey wrote:
> > Howdy all:
> >
> > 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]));
>
> As was pointed out already, don't use the qw().
>
> Here
On Tue, Aug 19, 2003 at 05:54:42PM -0500, Dan Muey wrote:
> Howdy all:
>
> 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]));
As was pointed out already, don't use the qw().
Here are some interesting bench
Thanks for the pointers!
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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() operato
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() operato
Dan Muey wrote:
Howdy all:
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]));
if($string does not match any of the regexs in @regex) { }
So basically
if($string !~ [EMAIL PROTECTED]) { ... }
Howdy all:
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]));
if($string does not match any of the regexs in @regex) { }
So basically
if($string !~ [EMAIL PROTECTED]) { ... }
I suppose I cou