On Wed, 24 Jul 2002, Shlomi Fish wrote:

> I changed its name and received the following warning:
>
> Subroutine shlomif_fish_own_function_check_url redefined at
> /home/shlomi/Docs/Univ/Seminars/from_cvs/perl/site/cgi/admin/index.cgi
> line 17.

ah. that leads us to beleive that a file is being included and/or executed
twice instead of once. i'd then go to check the setup, to see if that
might be the case. have you used mod-perl before? it does have a few
quirks relative to regular CGI scripts. does your configuration tell the
system to have 'index.cgi' handled by mod-perl? as far as i remember (from
reading one of reuven's articles several years ago), with mod perl, your
script is normally run in an endless loop, rather then starting and
stopping every time (or is that just one way to use mod-perl?).

i would suggest you try to run apache with a single process, and then
strace that process (or otherwise, run apache under 'strace -f -o filename
httpd) and check all file-opening operations, to see if your file is being
opened more then once, and under what circumstances.

-- 
guy

"For world domination - press 1,
 or dial 0, and please hold, for the creator." -- nob o. dy




=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to