http://www.perlmonks.org?node_id=1105171


in reply to Re^4: CGI::param called in list context from package
in thread CGI::param called in list context from package

thanks! thats very helpful sir! I would like to add that during my testing i found that even calling save param with
$session->save_param(scalar $query->param('param_name')) OR even
$session->save_param($query->param('param_name')
was causing my module to die without writing to the logs. I had mentioned this in the initial post .
Do not wait to strike when the iron is hot! Make it hot by striking - WB Yeats

Replies are listed 'Best First'.
Re^6: CGI::param called in list context from package
by leej (Scribe) on Oct 27, 2014 at 16:00 UTC
    I'm not familiar with CGI::Session, but a quick look at the code shows that the first argument to save_param needs to be the $query object, and you're passing the return value from the call to $query->param, which will be a string, so that's probably why that code doesn't work.