CGI.pm: provide CGI::multi_param implementation if missing
commit6a33300eaf1f47f81fd1b3a2360b71f0070e817a
authorKyle J. McKay <mackyle@gmail.com>
Thu, 1 Oct 2015 18:23:57 +0000 (1 11:23 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Thu, 1 Oct 2015 18:23:57 +0000 (1 11:23 -0700)
treede84e80f20244bfaf8b716c585cd33c08644e504
parent26e65f6bc0d1750b45eae45edc054f9306cfb7e6
CGI.pm: provide CGI::multi_param implementation if missing

If the CGI.pm module is too old to have a multi_param method
(as properly determined via UNIVERSAL::can), provide one so
that we can use it without restraint to mark those places where
we deliberatly call the CGI::param method in list context (by
changing those calls to multi_param instead) and thereby avoid
the newer CGI.pm's warnings about that.

We also provide a prototype for the html_esc function at the same
time so that it will not provide array context since it commonly
wraps calls to CGI::param but only accepts one value to escape.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
Girocco/CGI.pm