in reply to Re: Re: Re: Re: Re: Re: Risks in the oblivious use of qr//
in thread Risks in the oblivious use of qr//
this compiles to (?-xism:test) meaning you are stating that the string test must exist and be lowercase. so ...$regex = qr/test/;
This seems very logical to me that this should match "test OTHERWORD" but not "TeSt OtherWord" as I have defined $regex to be case sensitive explicitly ! Are you really stating that you feel you need toif (/$regex OtherWord/i) {...}
to accomplish this case insensitivty on the qr var?? That just blows me away.if (/(?-ixsm:$regex) OtherWord/i) { ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Re: Re: Re: Re: Risks in the oblivious use of qr//
by diotalevi (Canon) on Aug 11, 2003 at 17:12 UTC | |
by waswas-fng (Curate) on Aug 11, 2003 at 18:06 UTC | |
by diotalevi (Canon) on Aug 11, 2003 at 18:26 UTC | |
by demerphq (Chancellor) on Aug 12, 2003 at 14:25 UTC | |
by diotalevi (Canon) on Aug 12, 2003 at 15:12 UTC | |
|