[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] MacPerl warn and die format



At 21.50 -0500 12.31.1998, Paul J. Schinder wrote:
>On 01 Jan 1999 01:01:23 +0100, Matthias Neeracher wrote:
>>
>>In article <199812301316.FAA14306@avocet.prod.itd.earthlink.net>, "Paul
>J. Schinder" <schinder@pobox.com> writes:
>>> On Wed, 30 Dec 1998 07:55:38 -0500, Chris Nandor wrote:
>>>>
>>>> Of course, Matthias is the final word, but I don't think the current
>>>> behavior is proper.  It breaks things.
>>
>>> I agree. Many authors check for /^error string/ in $@, which won't match
>>> under MacPerl because of the '# ' in front.
>>
>>Checking for error strings this way is almost certainly a terrible idea
>anyway,
>>so I'm not overly inclined to accommodate to the wishes of that crowd.
>>
>>Dropping the ^ often works.
>
>It's always worked in my experience, and authors are usually willing to
>change. But it's another gotcha for MacPerl users using modules straight
>from CPAN.

Yes, and that is my main concern.  I was hoping we could find an easy fix,
though I could not see one.


>Chris, maybe this should get mentioned in perlport.

Well, let's wait until we know we won't change it.  But if it remains, then
yes, absolutely.

Basically, it would say as Matthias noted: do not use ^, and do not check
for anything after the warning (i.e., for the line number, etc.), and if
you do, then do not assume any certain text or lack of it between the
warning and what comes after it.

--
Chris Nandor          mailto:pudge@pobox.com         http://pudge.net/
%PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10  1FF77F13 8180B6B6'])

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch