in reply to Re: CGI::Tiny versus undefined parameter/form field
in thread CGI::Tiny versus undefined parameter/form field

Are you saying that the error has nothing to do with whether or not that form field whose value is requested exists in the form? Because that is what the error message leads me to believe.

I have initiated the CGI as seemed to be indicated in the package description, even copying the example verbatim. But try as I might, it doesn't work.

It seems that it is quite new. There are no examples of code using CGI::Tiny that I was able to find online beyond that which I've already tried that comes with the package itself. Sigh, it looks like I'll just have to go back to good ole CGI.

Blessings,

~Polyglot~

  • Comment on Re^2: CGI::Tiny versus undefined parameter/form field

Replies are listed 'Best First'.
Re^3: CGI::Tiny versus undefined parameter/form field
by Bod (Parson) on Dec 11, 2022 at 23:47 UTC

    You could try printing or otherwise inspecting the type of $cgi

    use Scaler::Util qw( reftype ); print reftype $cgi;

    That will tell you conclusively if $cgi is a CGI::Tiny object or undef.