Hi,
all,
I run into the
following error while runing our CGI in Apache mod_perl
Undefined subroutine
&BookReqComObj::BookingRequest called at
/APACHE$ROOT/000000/bin/BOOKREQ_COM OBJ.PL line 149 during global destruction.
/APACHE$ROOT/000000/bin/BOOKREQ_COM OBJ.PL line 149 during global destruction.
The line 149
is
my $req = new BookingRequest($items->{$_});
my $req = new BookingRequest($items->{$_});
The workaround
is
my $req = BookingRequest->new($items->{$_});
and tested OK.
my $req = BookingRequest->new($items->{$_});
and tested OK.
First I thought it
is mod_perl issue, then my colleague told me that Perl has always had a problem
with creating objects inside of other objects. Its a spotty problem.
Sometimes it works sometimes it doesn't. She never been able to isolate
the actual cause.
I could not find any relevant documentation from the
web or reference books I have. Does anyone run into the same issue? Is this a
perl bug or common knowledge that should always use "Classname->new" to
create new object?
Thanks,
June Young, Software Development bus: (902)422-1973 x144
Dymaxion Research Ltd., 5515 Cogswell St., fax: (902)421-1267
Halifax, Nova Scotia, B3J 1R2 Canada mailto: [EMAIL PROTECTED]
