I have several common SQL queries that a lot of run modes will share. I can't put it in the prerun or init because running these queries depends on other things like the user being authenticated first.
For example: I need to get a list of the url's the user has in the database, but I can't get this info until their username and password has been verified and their user_id is added to their session. So I call run mode 'login' which verifies their name / pass and gets their user_id. I tried creating a test like follows: sub shared_test { my $self = shift; my $test_var = "TESTING 123"; $self->param("TESTING", $test_var); } I would assume this would update the $self->param("TESTING") with the correct info. How should I do this? --------------------------------------------------------------------- Web Archive: http://www.mail-archive.com/cgiapp@lists.vm.com/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]