in reply to CGI::param called in list context from package

You may want to look at this Blog post from earlier this month. They suggest preceding the statement with "scalar". And here is the CGI documentation on the matter.

As for the save_param command, the documentation shows that the first parameter must be the $cgi object, followed by a list of the parameters you want to save.

Update: So it turns out that I reference the v3.95 documentation above, here is v4.48 which suggests that the API for save_param has changed. Is it possible you are indeed running with an older version?

  • Comment on Re: CGI::param called in list context from package

Replies are listed 'Best First'.
Re^2: CGI::param called in list context from package
by perlron (Pilgrim) on Oct 26, 2014 at 21:13 UTC
    update ill have to double check the documentation u suggested as they are passing two arguments to param..
    yes i am testing this on perl 5.10.1 because that is the 'production' version so to speak.
    The odd thing is that when i use the scalar reference my code is breaking output and i see nothing in the logs.
    .just fyi..ill keep the security aspect in mind while designing the terms and conditions of website usage:D, as the application is not dealing with majorly sensitive data( maybe phone numbers/emails/names) and definitely no passwords!
    i will test this shortly on perl 5.20 and let u know if the warning / error surfaces.
    thank you for the quick help. i really value it.
    Do not wait to strike when the iron is hot! Make it hot by striking - WB Yeats