Skip Menu |

This queue is for tickets about the Business-IBAN CPAN distribution.

Maintainer(s)' notes

Please contact me if you want to take over this module, I don't have time to update it unfortunately.

Report information
The Basics
Id: 33826
Status: resolved
Priority: 0/
Queue: Business-IBAN

People
Owner: Nobody in particular
Requestors: joachim [...] schubis-dd.de
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: Bug in Module
Date: Wed, 5 Mar 2008 15:39:59 +0100
To: <bug-Business-IBAN [...] rt.cpan.org>
From: <joachim [...] schubis-dd.de>
Hi,

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}};


With kind regards

Joachim
From: TINITA [...] cpan.org
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
Subject: Re: [rt.cpan.org #33826] Bug in Module
Date: Thu, 13 Mar 2008 20:21:34 +0100
To: Tina Muller via RT <bug-Business-IBAN [...] rt.cpan.org>
From: Joachim Schubert <joachim [...] schubis-dd.de>
On Wed, Mar 05, 2008 at 06:56:34PM -0500, Tina Muller via RT wrote: Show quoted text
> > <URL: http://rt.cpan.org/Ticket/Display.html?id=33826 > > > On Mi. 05. Mär. 2008, 09:41:29, joachim@schubis-dd.de wrote: >
> > 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? >
hi tina, you are right. Now I'm using the getError method for error indicating. This works fine. Thank you for the hint. sincerely yours joachim