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


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

I have raised https://rt.cpan.org/Ticket/Display.html?id=99839 on rt.cpan.org.
  • Comment on Re^4: CGI::param called in list context from package

Replies are listed 'Best First'.
Re^5: CGI::param called in list context from package
by perlron (Pilgrim) on Oct 27, 2014 at 15:41 UTC
    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
      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.