perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Richter" <rich...@ecos.de>
Subject RE: [RESEND] Trapping errors
Date Tue, 22 Feb 2005 18:00:08 GMT
> 
> > Instead use
> > 
> > Execute({inputfile => '*', options =>
> > Embperl::Constant::optReturnError,
> > errors => \@errors}) ;
> > if (@errors) {
> > 	Execute (....
> > }
> > 
> 
> I've been doing something recently with Execute and
> @errors, and I noticed that the @errors array also
> contained any 'warnings' as well as errors... 
> 
> I came across a previous post of yours, Gerald, which
> said that the the way to check if errors have occured
> would be to check the return value of the Execute....
> So if the Embperl script only contained warnings you
> could tell the difference...
> 
> Is this still the case?
> 

Yes, that's still true

Gerald


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


Mime
View raw message