Thank you Andre.

Yeah, I think I shouldn't put my sub-functions at the bottom.
Oh, there IS another solution.
Using [* *] instead [- -] or [! !] solves this problem.
But I am somewhat reluctant to use this because they says it's experimental
and they didn't say to use it to define functions anywhere from the embperl
docs.

I wonder how other embperl users define subfunctions in the same HTML page
or Are they all define sub functions in other files????

Andy


-----Original Message-----
From: Andre Landwehr [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 04, 2001 11:27 AM
To: [EMAIL PROTECTED]
Subject: Re: A newbie question. -


On Wed, Apr 04, 2001 at 10:34:26AM -0700, Andy Lim wrote:
> The weired thing is, if I define this sub function at the top of this HTML
> page, it generates no error at all. It means I get into trouble when I
> define sub-functions at the bottom of each web pages.
> I also tried embperl's meta command to define this sub function and called
> it using "Execute" but I got still same error.
>
> What am I doing wrong?

I suppose it has something to do with your [- -] and [! !]
sections living in a different scope. I can confirm the behaviour
but I could'nt find any other solution than putting the function
at the top of the page either.

Andre

--
 /"\
 \ /
  X  ASCII Ribbon campaign against HTML E-Mail
 / \



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

Reply via email to