> We are running these pages from HTML::EMBPERL:exec
> and I noticed that the latest release has a notice about a bug fix with
> %fdat. Can this be the source of the problem?
>
That would be possible, try to upgrade to 1.2.1
> >
> > each [- -] is evaled as a separate anoymous sub,
>
> Then the
Gerald Richter wrote:
>
> > sub new {
> >
> > my $pkg = shift;
> > my $fdatref = shift;
> > my $database = 'patients';
> > my $obj = bless {
> > '_fdatref' => $fdatref,
> > '_balances' => 0, ## array ref for balances
> > '_prev_pat
Gerald...
Thanks for getting back so quickly,
The FINANCEMOD.pm seems to have a correcly built constructor. I tried
to spare the list of
some of the details, but let me just display this snipet...
package FINANCEMOD;
use SQLHANDLE;
sub new {
my $pkg = shift;
my $f
> sub new {
>
> my $pkg = shift;
> my $fdatref = shift;
> my $database = 'patients';
> my $obj = bless {
> '_fdatref' => $fdatref,
> '_balances' => 0, ## array ref for balances
> '_prev_patnums' => 0, ## array ref for prev_patnums
>
> 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 g
The problem isn't 'use', that's working fine. If it weren't, line 2 would
cause your code to die. The problem is that FINANCEMOD->new() isn't returning
a properly blessed object. Since FINANCEMOD looks like a homegrown module, I
suggest putting debug statements in it to find out why it's not re
Hello
I have a rather complex mod_perl CGI which calls pages from
a database which are intereted with EMBPERL.
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