Hi there,

Thanks everyone for the great information you have provided. I have taken
everyones advice and installed CGI.pm with the cgi-lib compat mode on.

I am still having an issue that is only associated with the mod_perl version
of the web server?

I have two variables at initial login $userid and $password that are
populated via the cgi-lib readparse. Upon initial login the variable will
contain the correct information. If i would hit refresh they double and keep
going everytime i hit refresh?

Ex: $user = joe | Refresh -> $user=joejoe | Refresh -> $user=joejoejoe

I dont get it, i went thru my code and cleaned it up to make sure the
vairable were emptied on every execution by placing:

$userid = "";
$password = "";

before the data assignments. And still get the same effect? Anyone have a
clue, is it CGI.pm or mod_perl, the same source does not do it on a
non-mod_perl server.

Thanks,
john

> >>>>> "John" == John Buwa <[EMAIL PROTECTED]> writes:
>
> John> I have a huge system i wrote using the cgi-lib.pl as its core. I
> John> attempted to integrate mod-perl with my system and all my
> John> cgi-lib.pl which are used via a require in all scripts returns
> John> errors. My dont work, if they do the act very strange and
> John> unacceptable.
>
> John> My question is how do i use cgi-lib.pl and mod-perl together? Is
> John> anyone doing this? How can it be done.
>
> John> Here is a common error in my log:
>
> John> [Mon Jul 23 05:38:06 2001] [error] Undefined subroutine
> John>
&Apache::ROOTwww_2emy_2ddomain_2ecom::cgi_2dbin::pads::welcome_2epl::ReadPar
> John> se called at /driveb/usr/web/webroot/cgi-bin/pads/welcome.pl line 7.
>
> In addition to all the other things said in this thread, the reason
> you get this error is because cgi-lib.pl doesn't have "package", so it
> "exports" to the current package.  Unfortunately, if two
> Apache::Registry "scripts" both "require" it, then it gets defined in
> one package, but the require gets skipped in the other.  Definitely
> you need something that understands "import", such as CGI.pm's cgi-lib
> compatibility mode.
>
>
> --
> Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777
0095
> <[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
> See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl
training!
>


Reply via email to