> > The last message is weird. The variable concerned is a constant, which
> > should never be changed. There are many other constants which I defined,
> > so I am not sure why this one should cause a problem. I have checked my
> > code and it is used 3 times, in different files, in very simple
> > circumstances (i.e. just to set the background color of a page or
> > table).
> >
> 
> How do you define that constant, like:
> 
> $page_bgcolor = 123456 ;
> 
> or like
> 
> use constant page_bgcolor => 12345 ;
> 
> or in another way ?

It is defined as a constant:

        *bgcolor = \"beige";

This is the way to do constants which I read about in the Programming
Perl book... if this messes with Embperl in some way then is there
another way to do it? But the thing is, I have defined a whole bunch of
these, yet only the one error pops up. Strange.

Incidentally, here's another possible clue: The errors I get (in the
browser) when I use the latest CVS release are all very similar, if I
have the logging turned off - I don't get this with EMBPERL_LOG not set.
It's a long list, and they all look like this, but referring to
different methods:

[1175]ERR: 24: Line 3: Error in Perl code: Recursive inheritance
detected while looking for method 'get_tour' in package
'HTML::Embperl::DOC::_3' at
/www/crazyguyonabike/com/htdocs/journal/contents/init.html line 13.

I think this is something to do with the caching or ISA thing, because
when I copy the epmain.c which you sent me a few weeks ago over the one
in the latest CVS and rebuild Embperl, it all works again. So it should
be relatively straightforward to see what's different between the two
versions of epmain.c - I did a diff and there are only a few
differences. I sent you the working epmain.c yesterday, Gerald.

Hope this helps...

-Neil

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

Reply via email to