Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^5: CGI::param called in list context from package

by perlron (Pilgrim)
on Oct 27, 2014 at 15:41 UTC ( [id://1105171]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1105171]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (3)
As of 2024-09-10 08:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.