Hi Stas,

On Tue, 11 Nov 2003, Stas Bekman wrote:

> [snip]
> Who would think that a response handler:
> 
>    print while <FOO>;
> 
> would affect the special vars in the filter called by print.

Who indeed!

> [snip]
> So let's decide how do we act upon this:
> [snip]
> I'm not sure whether we should make a special case for $_ and localize it 
> behind the scenes. I wonder if someone may find this to be a problem, if they 
> try to use the non-licalized $_ for its side-effects.

Many experienced Perl programmers will use special variables almost
without thinking.  Things like this are frightening, and it's why I'm
sticking to mod_perl 1.x while continuing to read the experiences of
other, more adventurous souls.

I think it's necessary to make mod_perl behave like Perl as far as is
possible.  The chapter on mod_perl traps is big enough already, let's
not let it get any bigger.

73,
Ged.




-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html

Reply via email to