On Mi. 05. Mär. 2008, 09:41:29, joachim@schubis-dd.de wrote:
Show quoted text> just have seen the cool Module Business::IBAN Version 0.06.
> It seems there is an error in sub printError. When it is used in
> an server environment, the cmd
> 'print "$errors[$_]\n" for @{$_[0]->{ERRORS}};' line 80
> crashes the site with internal server error.
> It works better with the substitution:
>
> return "$errors[$_]\n" for @{$_[0]->{ERRORS}};
hi,
thanks for your report. the printError method works like documented,
so it is not a bug. for getting the error messages you have the
getError method.
for easy debugging i could add a debugError method, though, that
prints to STDERR. or getError could return the errors concatenated
if called in scalar context. would this do what you want?
regards,
tina