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.
In reply to Re^3: CGI::Tiny versus undefined parameter/form field
by Bod
in thread CGI::Tiny versus undefined parameter/form field
by Polyglot
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |