On Apr 27, 2010, at 4:16 AM, André Warnier wrote:

So, back to the basics, my interpretation : by default, consider any variable as "global/shared" and you'll generally stay out of trouble.

Isn't it true that a variable declared (with my) inside of a
sub (including a handler) starts its existence initialized for
each execution of the sub?  So I consider variables declared
outside of any sub "global" and get along OK without knowing
what "lexical scope" means, though I may have to learn someday.

That is all I was trying to say in the post that triggered
this thread's recent display of technical erudition.

(*) which is going to be very confusing in the logfile however, as for
now there is no way to distinguish which child logs a message.
For that, we might want to add ($$) to the log messages.

The 3rd field of Apache log file entries is quite useless, and
I have long used it to include the process ID and keepalive status.
Here's my log file format from httpd.conf:

LogFormat "%h %l %P:%{Connection}i>%{Connection}o %t \"%r\" %>s %b \"% {Referer}i\" \"%{User-Agent}i\"" keepalive

Best Regards,
cmac

Reply via email to