On Wednesday 17 Mar 2010 08:05:16 Clint Burfoot wrote:
> Hi Shlomi,
> 
> I'm writing to you in your capacity as maintainer of the "Error" CPAN
> module. I'm the maintainer of the Debian package for the module.
> 
> I've had a bug report "unable to debug code wrapped by try statement"
> lodged against the package. Full details of the report are at the link
> below.
> 
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510416
> 
> My intuition is that this is a design limitation, not a bug. May I have
> your comment?

Yes it, is. Using this program:

----SNIP----
#!/usr/bin/perl

use strict;
use warnings;

use Error qw(:try);

try {
    my $x = 5;
    my $y = 6;
    print "$x*$y == " , $x*$y, "\n";
    $x += $y;
    $y++;
}
except {
    my $E = shift;
    print "Got $E\n";
};

----SNIP----

I can debug it by putting a break on the line number of "my $x = 5;" (using "b  
9") and it seems to work fine. Otherwise, I should note that we no longer 
recommend people to use Error.pm, due to the black magical nature of its 
syntactic sugar.

Regards,

        Shlomi Fish

-- 
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
What Makes Software Apps High Quality -  http://shlom.in/sw-quality

Deletionists delete Wikipedia articles that they consider lame.
Chuck Norris deletes deletionists whom he considers lame.

Please reply to list if it's a mailing list post - http://shlom.in/reply .



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to