Re: localized lexical varibles

2005-03-15 Thread Vladimir D Belousov
Michael Peters wrote: Vladimir D Belousov wrote: Tom Schindl wrote: Vladimir D Belousov wrote: [skipped] The variables would get reinitialized if you passed them in as arguments. The link that I sent you explains that once the Call sub is compiled it creates a closure around the $r and $s

Re: localized lexical varibles

2005-03-15 Thread Vladimir D Belousov
Michael Peters wrote: Vladimir D Belousov wrote: [skipped] You're creating a closure with $s and $r. Check out http://perl.apache.org/docs/general/perl_reference/perl_reference.html#Understanding_Closuresthe_Easy_Way to understand why this causes strange behavior. Thank you! I searche

Re: localized lexical varibles

2005-03-15 Thread Vladimir D Belousov
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 va

localized lexical varibles

2005-03-15 Thread Vladimir D Belousov
ain: /111/222 From Call: /111 But request: /111/222 GET /1234 Request: /1234 From main: /1234 From Call: /111 But request: /1234 Where I am wrong? Or where I can found corresponding documentation? I beg your pardon for my english. -- Vladimir D Belousov

Re: User auth with mod_perl proc

2005-03-10 Thread Vladimir D Belousov
Thanks a lot! Your answer has helped me to start to move forward on this question. Very interesting links - that now is necessary for me Dominique Quatravaux wrote: There exists a lot of such modules on the CPAN already (http://www.cpan.org/) that do that. Why not try them? There are a couple of th

User auth with mod_perl proc

2005-03-10 Thread Vladimir D Belousov
I beg your pardon if my question has got to the wrong maillist. I'm new in mod_perl. And english too :) I want to create the scheme of authorization with mod_perl, not dependent on compiled Apache modules. Me interests - how to get the login and the password entered by the removed user? I have not