J
Justin C
I'm trying to avoid warnings in my Apache logs. Here's the code that's
causing the problem:
unless ($methods->{$param{method}}) {
$param{method} = "default";
}
If the web-page in question is called without any parameters then
$param{method} is undef, in which case I want $param->{method} =
"default".
When the page is called with parameters all is OK.
What is a better way of doing the above to avoid "Use of uninitialized
value $param{"method"}" ?
Justin.
causing the problem:
unless ($methods->{$param{method}}) {
$param{method} = "default";
}
If the web-page in question is called without any parameters then
$param{method} is undef, in which case I want $param->{method} =
"default".
When the page is called with parameters all is OK.
What is a better way of doing the above to avoid "Use of uninitialized
value $param{"method"}" ?
Justin.