perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Richter" <>
Subject Re: Implicit import of *
Date Mon, 25 Aug 2003 03:34:42 GMT

> EmbperlObject is doing an implicit import of *.

Yes, your $this pointer if always blessed into the '*' file, so your call to
any method in the '*' file doesn't need an import at all.

> 1. If all I want to do is import the file, what should I do?  Not
> call Execute?

> What if there's an error while importing, where would I
> trap it?

Normaly the only error should a syntax error which should be eliminated
during development time. If you still to trap errors either use an Apache
Error page or put the code in a separate sub and call it via Execute
('*#mysub') ;

> 2. How do I force the methods in purchase.html to get called and the
> ones in * to be ignored?

You need to overload the methods in '*', e.g.

                 $obj = Execute({ object => 'purchase.html',
errors => \@errors, options => HTML::Embperl::optReturnError});

bless $this, ref $obj ;


> -- 
> Kee Hinckley
>          Anti-Spam Service for your POP
>   Writings on Technology and Society
> 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
> everyone else's.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message