At 13:17 +0200 2000.09.20, Bart Lateur wrote: >On Tue, 19 Sep 2000 07:16:52 -0400, Paul Schinder wrote: > >>Those error messages you're seeing are a deliberate part of the test, >>and actually most of the tests are passing. The problem is a common >>one. MacPerl prepends a '# ' to the messages that go into $@, and >>the tests look for an anchored string, so the string doesn't match. >>Take the ^ off the match strings in the tests and see what happens. > >This comes up regularily. Having a different error message format than >the rest of the Perl world is annoying for this kind of tests, but >having an error message that is different from what LWP normally would >expect form a program, is not ideal either. > >How about having a Macintosh specific special variable (or a hash entry, >for example in %^H; too bad perlvar advises against it), which controls >which error message format you get, would that work? >X-Authentication-Warning: zinal.ee.ethz.ch: majordom set sender to >owner-mac-perl@iis.ee.ethz.ch using -f >Date: Mon, 18 Jan 1999 10:09:06 -0500 >From: aml@world.std.com (Andrew M. Langmead) >To: MacPerl List <mac-perl@iis.ee.ethz.ch> >Subject: Re: [MacPerl] MacPerl warn and die format >Sender: owner-mac-perl@iis.ee.ethz.ch >Status: > >John W Baxter writes: > >>At 21:32 -0500 1/15/99, Chris Nandor wrote: >>> >>> This discussion seems to have died. Did we come to a resolution? Will we >>> keep it the same, and I'll add a note to perlport? > >>I concluded near the point at which the debate died that it's >>probably more important to conform to the Perl form (so that code >>which makes the unwarranted assumption about error formats never >>changing will run) than to the MPW form of error messages. As one >>who started out strongly in the MPW-format camp, I thought I should >>mention my change. > >Since I was also someone who was arguing for retaining the MPW style >die format, I should also mention that I'm perfectly willing to have >it change to the standard form. > >I still want the MPW style die messages, but I figure I'm willing to >make a module that traps die() messages and reformats the error. Once >thats done and put in my PERL5OPTS, perl will still act like an MPW >tool to me. Modules that also trap die() will see standard format perl >error messages, and everyone else will be happy. (and everyone who >things that MPW is a pseudo-Unix environment can continue their >delusion.) >-- >Andrew Langmead >X-Authentication-Warning: zinal.ee.ethz.ch: majordom set sender to >owner-mac-perl@iis.ee.ethz.ch using -f >To: mac-perl@iis.ee.ethz.ch >Subject: Re: [MacPerl] MacPerl warn and die format >From: Matthias Neeracher <neeri@iis.ee.ethz.ch> >Date: 19 Jan 1999 07:35:06 +0100 >Lines: 8 >Sender: owner-mac-perl@iis.ee.ethz.ch >Status: > >It seems that the approach suggested by Andrew et al. should satisfy pretty >much everybody, so the default is going to revert to Un*x style messages. > >Matthias > >-- >Matthias Neeracher <neeri@iis.ee.ethz.ch> http://www.iis.ee.ethz.ch/~neeri > "I'm set free to find a new illusion" -- Velvet Underground -- Chris Nandor pudge@pobox.com http://pudge.net/ Open Source Development Network pudge@osdn.com http://osdn.com/ # ===== Want to unsubscribe from this list? # ===== Send mail with body "unsubscribe" to macperl-request@macperl.org