perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kee Hinckley <naz...@somewhere.com>
Subject Re: Erasing the output
Date Wed, 16 Oct 2002 19:55:29 GMT
>     try {
>         my $rval = Execute({ inputfile => '*', errors => \@errors, 
>options => HTML::Embperl::optReturnError});
>         if ($rval || @errors) {
>             $this->Error(0);
>             Execute("$ENV{DOCUMENT_ROOT}/error.html", $rval, @errors);
>         }

A slight correction to this, which I just came across.  You would 
probably want to do

	if ($rval) {
		...
	} elsif (@errors) {
	}

If $rval isn't set, and there is something in @errors, it probably 
means that somebody threw a warning.  And in that case you probably 
don't want to display a whole web page (at the bottom of the previous 
web page!), but want to deal with the problem some other way.
-- 

Kee Hinckley - Somewhere.Com, LLC
http://consulting.somewhere.com/

I'm not sure which upsets me more: that people are so unwilling to accept
responsibility for their own actions, or that they are so eager to regulate
everyone else's.

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


Mime
View raw message