Hello, OTRS devs!
It seems there is a fundamental flaw of error handling in OTRS.
Currently, many subroutines (methods) use "return;" when something
goes wrong.
It's okay but "return;" returns undef in scalar context and empty list
in list context.
Let me show a problem:
my %PID = $PIDObject->PIDGet(
Name => 'PostMasterPOP3',
);
Ok. Let's assume now that your %PID is empty. But why it's empty?
Because there is no such PID or because you've got an error (some DB
error for example)? There is no any error flags or something, what you
can check.