Re: [Cgi-session-user] Question
Brought to you by:
sherzodr
From: Mark S. <ma...@su...> - 2008-11-20 16:40:05
|
After a second look: > @entry1 = ("@required" . "@row1") That looks like invalid Perl. Does @entry1 have the value you expect after do this? What is your intent here? Do you want to join two arrays together? That would be: @entry1 = @required, @row1; > $session->save_param(["@entry1","@entry2","@entry3","@entry4","@entry5"]); Compare this syntax to the documented ways to call this method: http://search.cpan.org/~markstos/CGI-Session-4.38/lib/CGI/Session.pm#save_param() The "save_param()" looks like invalid Perl, and invalid call to save_param, which usually takes a query object as the first argument. You are using arrays as strings here as well. It's seems like there's still some learning to do about the fundamentals of Perl. I suggest taking advantage of the resources here: http://perl-begin.org/ Until you understand how arrays, hashes, scalars and concatenation works, using modules like CGI::Session will likely remain frustrating and full of debugging. Mark |