Привет всем!
Вот какие грабли выросли на моем огороде:
Server: Apache/1.3.1 rus/PL25.9 (Unix) mod_perl/1.15
perl: 5.00502
Скрипты, понимаешь...
=== cut comlib.pm ===
use strict;
use vars qw($VERSION @ISA @EXPORT @EXPORT_OK);
require Exporter;
@ISA = qw(Exporter);
@EXPORT = qw(
$author $dbh $cgi $r $log
&cominit &dbinit
&count_records &escapeline &doanchor &dolabel
&textfield &textarea &popupmenu &checkbox &smartsel
&ifshown &commonhdr &storepic &scroll_list &mkparam
);
[ ... ]
sub cominit {
...
}
=== cut comlib.pm ===
=== cut maintab.pl ===
use strict;
use lib '/home/tarkhil/work/comandor';
use comlib;
use Apache::Session::DBI;
use vars qw(%names $session);
use subs qw(&getvar &checkvar);
my $rc;
my $sth;
my $rv;
my $date;
my ($idprev, $id, $session, $opts, $idc);
my $cgi = cominit();
=== cut maintab.pl ===
При попытке запущать maintab.pl происходит нечто странное. Время от времени
(корреляции не наблюдаю!), возвращается
<P><B>Fatal error:</B> Undefined subroutine &Apache::ROOTfreebsd_2esvib_2eru::c
g
i_2dbin::comandor::maintab_2epl::cominit called <P>
Please inform <A HREF="mailto: tarkhil@asteroid.svib.ru">
tarkhil@asteroid.svib.r
u</A>
<P><B>Fatal error:</B> </BODY></HTML> at line 24 of
/data/apache/cgi-bin/comando
r/maintab.pl.
<P>
Please inform <A HREF="mailto: tarkhil@asteroid.svib.ru">
tarkhil@asteroid.svib.r
u</A>
[И так далее]
В логах при этом
[Thu Aug 20 17:41:13 1998] [error] Apache::Registry::handler for
/data/apache/cg
i-bin/comandor/maintab.pl in process 8834
[Thu Aug 20 17:41:13 1998] [error] Apache::Registry::handler examining
/cgi-bin/
comandor/maintab.pl
[Thu Aug 20 17:41:13 1998] [error] Apache::Registry::handler package
Apache::ROO
Tfreebsd_2esvib_2eru::cgi_2dbin::comandor::maintab_2epl
[Thu Aug 20 17:41:13 1998] [alert] </BODY></HTML> at line 24 of
/data/apache/cgi
-bin/comandor/maintab.pl.
[Thu Aug 20 17:41:13 1998] [error] 1 at line 24 of
/data/apache/cgi-bin/comandor
/maintab.pl.
Вот. Такая вот мня. Что я делаю неправильно?
Alex.
--
Alexander B. Povolotsky
[2:5020/145] [http://freebsd.svib.ru] [tarkhil@asteroid.svib.ru]
[Urgent messages: 234-9696 аб.#35442 or tarkhil@pager.express.ru]
"Russian Apache" includes software developed
by the Apache Group for use in the Apache HTTP server project
(http://www.apache.org/) See
Apache LICENSE.
Copyright (C) 1995-2001 The Apache Group. All rights reserved.
Copyright (C) 1996 Dm. Kryukov; Copyright (C)
1997-2009 Alex Tutubalin. Design (C) 1998 Max Smolev.