good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Value for session set in CGI::Session is undefby VinsWorldcom (Prior) |
on Apr 07, 2009 at 19:51 UTC ( [id://756128]=note: print w/replies, xml ) | Need Help?? |
In your "main program", you call:
But, $session isn't defined. It is defined (with "my" and the the "new CGI::Session()" call in the subroutine) and not passed back. Try doing the $session = new... call in the main program and passing both the $session and $user variables to the sub.
In Section
Seekers of Perl Wisdom
|
|