Re: gtk perl and Carp.pm



Hi Raul, 

This is what I use:

    use Carp;

    $SIG{'__WARN__'} = sub 
    { 
        $SIG{'__WARN__'} = 'IGNORE';
        Carp::cluck(@_);
    };

A lot of the time errors will occur within "main Gtk;" so it is not
suprising that you see backtraces to that.

Gavin

Raul Dias <chaos swi com br> writes:

Is there a way to use the module Carp with gtk perl correctly?

when you use the croak() function to report the error (and get where did the call came from)
it always reports the line with "main Gtk;"  instead of the line that actually called
the function that croak() is on.

Or should I give up un Carp with GtkPerl ?



Regards,

Raul Dias
_______________________________________________
gtk-perl-list mailing list
gtk-perl-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]