warnings will show you a line number, if you are only expecting a scalar to be returned use scalar like Corion showed.
But if you really expect multi values from http for the same element you should look into CGI for recommended workaround.¹
HTH! :)
¹) you can disable this warning by setting $CGI::LIST_CONTEXT_WARN to 0 or by using the multi_param() method instead
In reply to Re: "CGI::param called in list context" confusion
by LanX
in thread "CGI::param called in list context" confusion
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |