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

RE: [cgiapp] Global Variables


Hi Roy --

> 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


Your syntax is wrong.  The param() method takes two arguments -- the
variable name and the new value (just as you did in your setup() method):

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


TTYL,

-Jesse-


--

  Jesse Erlbaum
  The Erlbaum Group
  suppressed
  Phone: 212-684-6161
  Fax: 212-684-6226



---------------------------------------------------------------------
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.