Re: error messages

[email protected] (Karl Gaissmaier) Fri, 16 Jul 2004 10:13:01 +0200
Newsgroups perl.recdescent
Message-ID <[email protected]>
Jonas Wolf schrieb:

> I tried redirecting STDERR to a variable or a file, but this does not take 
> effect inside P::RD because of the way the STDERR is handled. I'd prefer 
> not to meddle with P::RD, but if that's the only solution then I will.
> Here is some sample code which illustrates my point. The "This is an error 
> message\n" gets read into the variable as expected, but P::RD's error 
> messages are printed to STDERR nonetheless.

you can cheat P::RD with directly accessing $thisparser->{errors},
see the FAQ: 'Accessing error data' and the answer by Damian

Best Redards
	Charly

-- 
Karl Gaissmaier       KIZ/Infrastructure, University of Ulm, Germany
Email:[email protected]           Service Group Network