One way is to configure the CPAN module:
C:\ perl -MCPAN -e shell
which, the first time you invoke it, will lead you through
a dialogue. You can accept most of the defaults, except
for the list of CPAN mirrors to use. Then, at the
CPAN.pm shell prompt, you can say
cpan install CGI
BTW,
perl -MCGI -e print $CGI::VERSION;
2.98
J-S
- Original Message -
From: Jean-Sebastien Guay [EMAIL PROTECTED]
To: Randy Kobes [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, August 04, 2003 9:32 AM
Subject: Re: Current directory
One way is to configure the CPAN module
On Mon, 2003-08-04 at 09:32, Jean-Sebastien Guay wrote:
But I still get the same message...
[Mon Aug 04 09:31:57 2003] [error] Global $r object is not available. Set:
PerlOptions +GlobalRequest
in httpd.conf at D:/Perl/lib/CGI.pm line 307.
Compilation failed in require at
Perrin,
First, check your conf file to be sure you
have this turned on. There are docs related to it here:
http://perl.apache.org/docs/2.0/user/config/config.html#C_GlobalRequest_
The docs also state that unless it's explicitly
turned _off_, it's on by default. But I turned it on anyways
On Mon, 2003-08-04 at 12:08, Jean-Sebastien Guay wrote:
Doesn't all this require that I actually get a running Apache server
first? The error message shows up when I try to start up the Apache
service!
What? That shouldn't happen unless something is calling CGI-new in
your startup, which is a
On Mon, 2003-08-04 at 12:08, Jean-Sebastien Guay wrote:
Doesn't all this require that I actually get a running Apache server
first? The error message shows up when I try to start up the Apache
service!
What? That shouldn't happen unless something is calling CGI-new in
your startup,
Hello again,
I have another problem trying to get one of my Perl
modules to load in my startup.pl script for the first time. In a couple places
in my scripts, I assume that the current directory is the one in which the
current script is being run. So for example, if my DocumentRoot is D
On Fri, 2003-08-01 at 15:46, Jean-Sebastien Guay wrote:
I see only disadvantages to having to specify absolute paths in both
these cases. For one, I have another web server running on port 8080,
which I use to test my scripts on, and whose DocumentRoot is
D:/htdocs-dev. So if I had to manually
Hi Perrin,
Thanks for both your answers. Indeed, for the other question, I was using
CGI 2.91 instead of 2.93 (because that one isn't yet available for Perl 5.8
via PPM). I'll find a way to upgrade it.
There are dozens of possible answers to this.
...
There are also common approaches like
On Fri, 2003-08-01 at 16:59, Jean-Sebastien Guay wrote:
Unfortunately, this doesn't seem to work. Even if I put the PerlSetVar
statement before my PerlRequire statement like so:
PerlSetVar SCRIPT_ROOT D:/htdocs
PerlRequire D:/htdocs/_startup.pl
the module, which is then loaded from
On Fri, 1 Aug 2003, Jean-Sebastien Guay wrote:
Hi Perrin,
Thanks for both your answers. Indeed, for the other question, I was using
CGI 2.91 instead of 2.93 (because that one isn't yet available for Perl 5.8
via PPM). I'll find a way to upgrade it.
One way is to configure the CPAN module:
Hi!
On Tue, Jun 17, 2003 at 02:19:49AM +0200, Oskar wrote:
when I am executing perl script on Apache it seems that the current
directory is not the directory where the script is located but the directory
c:\program files\apache group\apache. I need current dir to be the script
dir since i
dir.
Any other suggestion to solve it?
Oskar
- Original Message -
From: Thomas Klausner [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 17, 2003 9:41 AM
Subject: Re: Current directory
Hi!
On Tue, Jun 17, 2003 at 02:19:49AM +0200, Oskar wrote:
when I am executing perl
On Tue, 17 Jun 2003, Oskar wrote:
- Original Message -
From: Thomas Klausner [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 17, 2003 9:41 AM
Subject: Re: Current directory
Hi!
On Tue, Jun 17, 2003 at 02:19:49AM +0200, Oskar wrote:
when I am executing perl
Hi,
when I am executing perl scripton Apache it
seems that the current directory is not the directory where the script is
locatedbut the directory c:\program files\apache group\apache. I need
current dir to be the script dir since i have some pm in the script
directories.
I have apache
At 06:22 PM 1/28/2003, Stas Bekman wrote:
[...]
Is it true what was said in one of the other
threads -with mod_perl (Apache 1.3.27) the current working directory is
different from the dir where the script lies?
[...]
As I've followed up (because I knew that that particular post will create
Actually I haven't got this to work. I'm yet trying to figure how to load
the module (PerlModule Apache::SSI) in the .htaccess with it actuall
residing in the /perl/ directory rather than the standard lib directories.
Why? It's a module, not a CGI script.
I'm not sure whether the company
[EMAIL PROTECTED] wrote:
I'm not sure whether the company that's hosting my web site will want to
install any non-critical module (They ahve done me a favor allowing me
to run mod_perl ... ) So I want to see if I have any options installing
it under my directory tree.
Okay. You need to
At 10:50 AM 1/29/2003, Perrin Harkins wrote:
[EMAIL PROTECTED] wrote:
I'm not sure whether the company that's hosting my web site will want to
install any non-critical module (They ahve done me a favor allowing me to
run mod_perl ... ) So I want to see if I have any options installing it
You can do this. Technically I think you can POST to a file, but you
don't need to.
You can do this lots of ways, including post-processing the output of a
CGI script with a module like CGI::SSI. What I
Tks that way worked except for the #config sizefmt of mod_include
would suggest is
[...]
Is it true what was said in one of the other
threads -with mod_perl (Apache 1.3.27) the current working directory is
different from the dir where the script lies?
[...]
As I've followed up (because I knew that that particular post will create
confusion), it *is* the script's dir for
[EMAIL PROTECTED] wrote:
Tks that way worked except for the #config sizefmt of mod_include
That should work fine. What's broken with it?
From the documentation of the Apache::Include I couldn't make out
whether it handled other features like set which I am using.
It does not implement
At 06:54 PM 1/28/2003, Perrin Harkins wrote:
[EMAIL PROTECTED] wrote:
Tks that way worked except for the #config sizefmt of mod_include
That should work fine. What's broken with it?
(Frankly I'm so eagar to not just get my feet wet in mod_perl (just started
on it today), but drown in it I
[EMAIL PROTECTED] wrote:
!--#config sizefmt=Mb -- works with mod_include Got a [an error
occurred while processing this directive] (well actually the errmsg that
I had set) with CGI::SSI. As I said I didn't really follow-up to see if
this is a prob.
Oh, sorry, I missed the part about
24 matches
Mail list logo