Further to Corion's reply above:
The following code ... is unlikely to do what you intend it to do.
Likewise the statement
die "No CGI query passed to SBL_Config::check" if undef $q;
which dies if the undefined value returned by undef after undefining $q is true (it never will be). (Update: Furthermore, $q is always undef-ed in this statement, thus rendering it useless — and then you try to use it!)
Maybe you mean
die ... unless defined $q;
or
die ... if ! defined $q;
In reply to Re: Can't call method "url" on an undefined value? But it appears defined!
by AnomalousMonk
in thread Can't call method "url" on an undefined value? But it appears defined!
by mjfrazer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |