perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Filin <fil...@bk.ru>
Subject Error messages and catching output
Date Tue, 20 Jul 2004 09:56:03 GMT


Hi.
I have yet another question about output catching.

Let us look at this code:

[-
	# 1) Execute some file with errors in it:
	Execute('with-errors.epl');

	# 2) Execute anything, and catch output
	Execute({inputfile=>"some.epl", output=>\$out});

	# $out now contain errors from the "with-errors.epl"
-]

And no one error will be shown in browser. 
It's bad.

If I don't mistake, it's possible to say:

[- 
	Execute('with-errors.epl') -]        
	Execute({inputfile=>"some.epl", output=>\$out})
	$req=shift;  
	die if $req->Error(); 
-]

And then, ALL errors WILL be shown. 
But what if I don't want to see possible errors from the some.epl?

(Embperl 1.3.6)
---
Filin






---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message