> I seem to randomly loose my objects from the EMBPERL pages.
>
> For example we have one page from the database called with the
> following code:
>
>
> 1 [- use FINANCEMOD;
> 2 $obj = FINANCEMOD->new(\%fdat) -]
> 3
>
> 12 [- $head = $obj->page_head(); -]
>
> I get the following error:
>
> Can't call method "page_head" without a package or object
> reference at somegirls line 12.
>
looks like your new returns undef or at least not an object reference
> If we don't include the semicolon after the use statement, the module
> fails to be called into the program at all.
>
That doesn't wonder. You always need a semicolon to speparte two Perl
statements, that nothing special about Embperl
>
> What is the best way to make sure use works in a page?
>
use had worked. If not you have seen an error message about "FINANCEMOD"
>
> I'm very confused about how the scoping works. It looks like a bug in
> EMBPERL.
I don't think so
> The documentation on the scoping is also confusing
> What exactly is the difference between [- -] and [* *]?
>
>From point of scoping [- -] is wrapped in an Perl { } block, while [* *]
isn't, but this nothing todo with your problem. Your Embperl code is
correct, but something inside your new seems to went wrong.
Gerald
-------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: [EMAIL PROTECTED] Voice: +49 6133 925151
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------