perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Lenski <dlen...@gmail.com>
Subject Re: returning errors from Execute
Date Sun, 12 Feb 2006 22:37:08 GMT
On 2/12/06, Kathryn Andersen <kat_lists@katspace.homelinux.org> wrote:
> Why is that hard to parse?  Use perl regular expressions, that's one of
> the things it is good at.
>
> You'd just have to go
>
> foreach (@errors) {
>    if (/FIXME/) {
>      # respond to this error
>    }
> }
>
> That should enable you to respond to all the "FIXME" errors.

I agree that this is easy to do in the case of errors which are simply
strings.  However I would like to be able to return hash references as
errors, such as
with: croak \%error

The way that Execute returns errors right now, all I end up with is
the string representation HASH=0xdeadbeef.

Dan

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


Mime
View raw message