Re: Hypotheticals again

2002-09-05 Thread Peter Haworth
On Wed, 4 Sep 2002 17:29:27 -0400 (EDT), Trey Harris wrote: > In a message dated Wed, 4 Sep 2002, Jonathan Scott Duff writes: > > So, each time I use a hypothetical, I have to be concious of which > > variables are currently in scope? Perl can't help be with this task > > because how does it know

Re: Hypotheticals again

2002-09-04 Thread Jonathan Scott Duff
On Wed, Sep 04, 2002 at 10:34:23PM +, Damian Conway wrote: > Trey Harris wrote: > > It should. I think everyone has been proceeding under the assumption that > > they are. If you use a variable name already defined, then you set both > > the match object's attribute of the same name (minus t

Re: Hypotheticals again

2002-09-04 Thread Damian Conway
Trey Harris wrote: >>So, each time I use a hypothetical, I have to be concious of which >>variables are currently in scope? Perl can't help be with this task >>because how does it know if I meant to hypothetically clobber that >>lexical or store something in the match object. This is only reall

Re: Hypotheticals again

2002-09-04 Thread Trey Harris
In a message dated Wed, 4 Sep 2002, Jonathan Scott Duff writes: > The thread on hypotheticals has caused me to reread that section of A5 a > few times now and a couple of paragraphs bother me the more I read > them. I'll just quote the parts that bother me: > > ... If a regex sets a hypo

Hypotheticals again

2002-09-04 Thread Jonathan Scott Duff
The thread on hypotheticals has caused me to reread that section of A5 a few times now and a couple of paragraphs bother me the more I read them. I'll just quote the parts that bother me: ... If a regex sets a hypothetical variable that was declared with either my or our beforeha