Ken Y. Clark wrote:
> As for this and Perrin's comment about parsing on your own, the point
> is that you've written a lot of code that has already been written and
> debugged by a lot of really smart people. There's no reason for you
> to be reading STDIN and spliting and all that. If you're us
PROTECTED]
> Subject: Re: variables not changing with modperl??
>
> Sorry, There is a my in front of the ($cookie,$user)
> code. I am confused about your second statement about
> parsing the input. What should I be doing? Do you
> mean I should use $r->read($content,
>
Sorry, There is a my in front of the ($cookie,$user)
code. I am confused about your second statement about
parsing the input. What should I be doing? Do you
mean I should use $r->read($content,
$r->header_in('Content-length'))? to read in the
variables?
I use the AuthCookie modules to set t
darren chamberlain wrote:
> Make those global symbols ($cookie, $user, and $hash) lexical (declare
> with my) and the code will both compile and do what you expect (i.e.,
> not maintain values from call to call).
That's what I was thinking too. Also, it's really not a good idea to do
your own p
Hi darren
Did you try starting apache with "httpd -X". It spawns only one process and that helps keep things in order, as far as variable values. You can try trouble shooting with that.
darren chamberlain <[EMAIL PROTECTED]>wrote:
* Michael Drons <[EMAIL PROTECTED]>[2002-08-13 01:55]:> Thanks fo
* Michael Drons <[EMAIL PROTECTED]> [2002-08-13 01:55]:
> Thanks for the link. I actually don't use functions.
> Everything is mostly in MAIN. Here is a snip of code:
>
> #!/usr/bin/perl -wT
> use strict;
> print "";
> my $r = Apache->request;
> $r->content_type("text/html");
> $r->status(200);
I'm sure someone will correct me if I'm wrong...
But, variables in the initial section (ie outside of a function) in the main
package will stay in scope all the time. This means that it will retain the
value from a previous request- which might be giving you these problems.
As Perrin Harkins wr
Thanks for the link. I actually don't use functions.
Everything is mostly in MAIN. Here is a snip of code:
#!/usr/bin/perl -wT
use strict;
print "";
my $r = Apache->request;
$r->content_type("text/html");
$r->status(200);
my $auth_type = $r->auth_type;
$cookie=$auth_type->key;
($user,$hash)=sp
Michael Drons wrote:
> I am using Apache::Registry (Apache 1.3.26) I am see
> weird things happen with my scripts. I have have "use
> strict" in all of the scripts and I use my() for all
> of my variables. But I still have variables that
> contain data from previous loads.
Sounds like the closu