[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cgiapp] Global Variables


Hello,

I need to set global variables at run time so that the teardown() subroutine
will execute some code based on its values.

I have attempted the following with no success.


in setup()

    $self->param('keyword_update' =>  "");
    $self->param('MemberID' =>  "");
    $self->param('MemberType' =>  "");


sub test_run_mode {
	my $self = shift;
	$self->param('keyword_update') = "true";
	$self->param('MemberID') = "37";
	return "check";

}

Result: Got an error: Can't modify non-lvalue subroutine call


Any help will be appreciated.


Roy Rubin
Irubin Consulting - Internet Solutions
suppressed
Phone (310) 402-0120
Toll-Free (888) 9-IRUBIN
http://www.irubin.com/





---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.