Re: [RFC] Text-Balanced 1.96 proposed interface changes: return failure in list context

2004-02-17 Thread khemir nadim
Hi,

David [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 There's not really much a module author can to do help a user like that.
 
 yes there is, it's the custom VERSION subroutine.  Your legacy program
 dies with the error message
 until it is edited, after the module upgrade.

David, Could you please tell us what you think about the only.pm module,
which seems to fix the problem rather well, and how it compares with your
solution.
Cheers, Nadim.




RE: capturing carp()s in module tests?

2004-02-17 Thread Orton, Yves
Title: RE: capturing carp()s in module tests?





 i want to test error checks in a module i'm working on. the
 error paths carp() the problem and then proceed.
 
 is there any way to capture the carp text (without using
 some of Carp.pm's internal routines) for testing that they're
 correct under the various error conditions?


Intercept $SIG{__WARN__} and $SIG{__DIE__} and youll capture all dies and warnings, including those generated by Carp. Unfortunately it isnt straightforward handling $SIG{__DIE__} correctly if eval is in use.

Or override Carp::carp().


Something like


*Carp::carp=sub {
 $message=Carp::shortmess @_;
 handle_carp_message($message);
 warn $message;
};



Yves







Paging Dr. Barr...

2004-02-17 Thread Austin Schutz
I'd like to make some changes to and fix some bugs in Error.pm,
but I have had no luck in contacting either the author (Graham Barr,
[EMAIL PROTECTED]) or the maintainer (Arun Kumar, [EMAIL PROTECTED]).
Ideally I'd like to take over maintenance since it doesn't seem to be getting
updated on a regular basis.

While it's likely and understandable that they're just ignoring me,
there's also the possibility they just aren't getting their mail.

Anyone have any email addresses they know (through actual use, not
perldoc XXX.pm conjecture) are good for either of these folks?
If not, any ideas on how I might go about contacting them?

Thanks,

Austin