This isn't a bug. HTML::Embperl is doing exactly what I want, and maybe my problem is simply too little sleep. But could someone please explain to me *how* it's managing to do this?

I have an HTML::Embperl Template. It does this (in greatly abbreviated form).

$this = shift;
Execute({ isa => 'cpanel_sclass.html' });
$this->processForm($udat{account_id});
$rval = Execute({ inputfile => '*', errors => [EMAIL PROTECTED], options => HTML::Embperl::optReturnError, output => \$Output});
...
$escmode = 4;
return $Output;


the file referenced by '*' implements the processForm method, and then calls it's superclass method as well (cpanel_sclass.html).

Now could someone please explain to me how it is that *'s processForm method appropriately gets invoked when I call $this->processForm, even though I call $this->processForm BEFORE I call Execute('*')?


P.S. The reason I'm calling Execute and capturing the output, only later to print it out, is that I want to Execute an error page if something goes wrong, but there's no way to abort existing output, and I don't want the error page to occur half way down the existing page.
--
Kee Hinckley
http://www.messagefire.com/ Anti-Spam Service for your POP Account
http://commons.somewhere.com/buzz/ 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 regulate
everyone else's.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to