Re: study

2005-03-21 Thread Luke Palmer
Nicholas Clark writes: > On Sun, Mar 20, 2005 at 10:54:15PM -0700, Luke Palmer wrote: > > > in the same form if it does come back. So consider 6.0 its usage > > deprecation cycle, so we can redefine its meaning (if we decide to). > > I don't see why study needs a

Re: study

2005-03-21 Thread Nicholas Clark
On Sun, Mar 20, 2005 at 10:54:15PM -0700, Luke Palmer wrote: > in the same form if it does come back. So consider 6.0 its usage > deprecation cycle, so we can redefine its meaning (if we decide to). I don't see why study needs a deprecation cycle when length doesn't get one. It

Re: study

2005-03-20 Thread Luke Palmer
Rod Adams writes: > Luke Palmer wrote: > >Ummm... yeah, keep a function around if it's not currently implemented. > >I don't think so. > > > I see that as preferable to saying "we had it in 5.10, we dropped it in > 6.0, then added it back in for 6.2." Umm... your statement isn't quite so shock

Re: study

2005-03-20 Thread Rod Adams
Luke Palmer wrote: Rod Adams writes: C is an odd sort of function. AFAIK, it's the only optimization hint that we have. Will the P6RE even use this information, and is it worth keeping? My gut feeling tells me that it will be useful again around 6.2, and we should keep it around until then as

Re: study

2005-03-20 Thread Luke Palmer
it around until then as a potential no-op. Ummm... yeah, keep a function around if it's not currently implemented. I don't think so. When we do implement it, we can put it in as a method on Str. $string.=study; Luke

study

2005-03-20 Thread Rod Adams
C is an odd sort of function. AFAIK, it's the only optimization hint that we have. Will the P6RE even use this information, and is it worth keeping? My gut feeling tells me that it will be useful again around 6.2, and we should keep it around until then as a potential no-op. Comments? -- Rod Ad

Re: RFC: extend "study" to produce a fast grep through many regexes

2000-08-21 Thread Larry Wall
sort of thing automatically without a study, at least with respect to the first character that could match. Of course, it didn't do it with regular expressions in an array, but rather in a "switch" structure. And you had to bunch your tests right. If your regular expressions were

RFC: extend "study" to produce a fast grep through many regexes

2000-08-21 Thread David L. Nicol
title: study a list of regexes David Nicol. Aug 21 version 1 [EMAIL PROTECTED] Sometimes I have a group of regexen, and I would like to know which ones will match. Current practice is to "study" $situation and then grep them: example a: study $situation; @matche