On 7/2/07, pubert na <[EMAIL PROTECTED]> wrote:
my $self;
[...]
sub doit{print $self->{CGI}->header; print "hello"; }
This is bad. You're using a variable that you didn't pass to doit(). That means you're creating a closure. The sub will remember the $self it saw when you first ran it, and it will never notice that $self changes later. You need to pass $self to this sub as a parameter in order to make this work. - Perrin