http://qs321.pair.com?node_id=148852


in reply to Re: Re: Confusion about properly using Carp
in thread Confusion about properly using Carp

I was thinking along the lines of: (warning: untested code ahead)
package Foo; ... our $error; *DBI::carp = sub { $Foo::error = shift }; ... my $self->{dbh} = DBI->connect( ... ) or carp $error;

Lbh ebgngrq guvf grkg naq abj lbh pna ernq vg. Fb jung? :) -- Whreq