[Cgi-session-user] Question
Brought to you by:
sherzodr
From: Peter S. <pt...@ms...> - 2008-11-19 16:09:14
|
Hopefully a quick question, I have added the following code to my cgi script: ======================================================================================================= if (scalar@row1 == "6") { @entry1 = ("@required" . "@row1") }; if (scalar@row2 == "6") { @entry2 = ("@required" . "@row2") }; if (scalar@row3 == "6") { @entry3 = ("@required" . "@row3") }; if (scalar@row4 == "6") { @entry4 = ("@required" . "@row4") }; if (scalar@row5 == "6") { @entry5 = ("@required" . "@row5") }; #session handling $session = new CGI::Session(undef, undef, {Directory=>'../tmp/http_sessions'}) or die CGI::Session->errstr; print $session->header(); $session->save_param(["@entry1","@entry2","@entry3","@entry4","@entry5"]); ======================================================================================================= and once I attempt to run the script i receive this error in my http log: Can't call method "param" on unblessed reference at /usr/local/lib/perl5/site_perl/5.10.0/CGI/Session.pm line 360., referer: http://localhost Any and all help is much appreciated. Thank you, _________________________________________________________________ Access your email online and on the go with Windows Live Hotmail. http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_access_112008 |