On Fri, 11 Jan 2002, Gerald Richter wrote: >> We have a set of Embperl web pages which have a common backend (perl >> library) which populates many values in the page dataspace. Is there a >> way to do cleanup on this other than adding each variable to %CLEANUP as >> it is set? > > No > >> If the answer is no, would y'all be interested in >> a> code to support @CLEANUPFUNCS > > What is the purpose of @CLEANUPFUNCS ?
Um, same thing as the CLEANUP subroutine; I apparently skimmed over that. >> b> code to add option to purge all non-Embperl variables at cleanup > > To you mean all variables that are imported by some other module? That > shouldn't be to hard to implement, because at the moment Embperl explicitly > doesn't cleanup them, so you only have to change the condition which decides > what to cleanup in the cleanup code. Or variables Embperl doesn't realize are not imported. Incidentally, I'm realizing that, if one were to add this, someone else would likely want a variable %LEAVEDIRTY, for those few instances where they were wanting something retained. Not that I need this, now that I've come to terms with adding all kinds of stuff to %CLEANUP. >> (Note that we have a fix in place for the immediate problem, which >> actually appears to be that Embperl thinks that >> >> @{$modify{$attr}{'d'}} = (); >> >> is setting something other than "%modify" (I'd suspect "$modify", but >> I've not looked into this yet.) > > Why do you think Embperl thinks that $modify is set? If it's because it's > shown in the logfile when the vars that are cleanup is shown, then it's Perl > problem. Embperl doesn't care much about your expression. It just looks what > symbols are reported as defined by Perl. According to the description of what gets cleaned automatically, %modify should be cleaned, because it's set in code in the webpage itself. But it isn't being cleaned, unless we explicitly place it in %CLEANUP. As I mentioned, I hadn't actually turned that logging on to look at what is being cleaned. As it happens, Embperl is actually not trying to delete the variable created in the above assignment at all - I'm guessing this is due to that not matching the regex you have for 'what is a variable assignment'. Ed --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]