Re: localized lexical varibles

[prev] [thread] [next] [Date index for 2005/03/15]

From: Vladimir D Belousov
Subject: Re: localized lexical varibles
Date: 18:54 on 15 Mar 2005
Tom Schindl wrote:

> Vladimir D Belousov wrote:
>
>> [skipped]
>
>
> You are creating a closure here for $s here. There enough material out 
> there go and read about closures(See Apache::Registry).
> Why do you embed a sub into a sub?

I hope this sub will be mmm... "localized subroutine"  and all varibles 
in one will be reinitialized :)
I now - it's nonsense :)

By the way, any compilation time errors are found out only at the 
request to the Apache.
But how such code Apache loads? I mean if a code has sintax errors, for 
example.
Or Apache loads code only with first client request?

> So this is not bug but a feature :-).
> You code is buggy move the sub Call {...} outside the sub handler {} 
> and you are fine.
>
> Tom
>
>> I beg your pardon for my english.
>>

localized lexical varibles
Vladimir D Belousov 17:29 on 15 Mar 2005

Re: localized lexical varibles
Michael Peters 17:30 on 15 Mar 2005

Re: localized lexical varibles
Vladimir D Belousov 19:27 on 15 Mar 2005

Re: localized lexical varibles
Perrin Harkins 23:59 on 15 Mar 2005

Re: localized lexical varibles
Tom Schindl 17:40 on 15 Mar 2005

Re: localized lexical varibles
Vladimir D Belousov 18:54 on 15 Mar 2005

Re: localized lexical varibles
Michael Peters 18:59 on 15 Mar 2005

Re: localized lexical varibles
Vladimir D Belousov 19:41 on 15 Mar 2005

Generated at 16:59 on 18 Mar 2005 by mariachi v0.52