Re: [Cgi-session-user] Question
Brought to you by:
sherzodr
From: Peter S. <pt...@ms...> - 2008-11-20 19:29:32
|
> Date: Thu, 20 Nov 2008 11:39:54 -0500 > From: ma...@su... > To: cgi...@li... > Subject: Re: [Cgi-session-user] Question > > > 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 Mark, Thank you very much for your patience and time spent on this already. I appreciate the references and will take a look at them. Could you please show me the proper way to save multiple array's using save_param()? This is something that I need a resolution to quickly, plus I learn better this way :). Thanks _________________________________________________________________ Color coding for safety: Windows Live Hotmail alerts you to suspicious email. http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_safety_112008 |