I found something a bit curious that I was wondering if someone could
explain. I have the following apache::registry script I called test.reg:
#!/usr/bin/perl
use strict;
if($test){
# do stuff
}
print qq|HTTP/1.1 200 OK\r\n|;
print HELLO WORLD\n\n;
I ran my server in single-user mode
Yes, exactly. After the first run, $test got an entry in the symbol
table. Not usually an issue in CGI perl. =)
[EMAIL PROTECTED] (Eric Kolve) wrote:
I found something a bit curious that I was wondering if someone could
explain. I have the following apache::registry script I called test.reg:
that's no apache::registry. that's perl
there are big guns here who can answer
your questions but it am not one of them.
On Thu, Apr 26, 2001 at 02:25:17PM -0700, Eric Kolve wrote:
I found something a bit curious that I was wondering if someone could
explain. I have the following
On Sun, 12 Nov 2000, Stas Bekman wrote:
Hi,
Please explain, the guide appears to recommend -w as a useful
diagnostic technique (and the "Command Line Switches (-w, -T,
etc)" section says -w works).
The guide is correct. -w in the shebang line is equal to 'local $^W=1' for
the file
On Tue, 7 Nov 2000, Paul DuBois wrote:
At 10:25 AM +0100 11/7/00, [EMAIL PROTECTED] wrote:
On Tue, 7 Nov 2000, Ron Rademaker wrote:
Hi,
You would think so, however every doc I read (including the one you
pointed out to me) told me that perl gives me a warning:
Variable $foo
Ron,
This is a greivous FAQ. Please read the guide at
http://perl.apache.org/guide
You'll find much more than this question answered.
Ed
Ron Rademaker wrote:
Hello,
I'm just starting with mod_perl and I'm using Apache::Registry(). The
second line after #!/usr/bin/perl -w is use
You would think so, however every doc I read (including the one you
pointed out to me) told me that perl gives me a warning:
Variable $foo will not stay shared at
I do use -w so I should get that warning, but I don't. The variable stays
defined, but it doesn't have the value of the old
On Tue, 7 Nov 2000, Ron Rademaker wrote:
Hi,
You would think so, however every doc I read (including the one you
pointed out to me) told me that perl gives me a warning:
Variable $foo will not stay shared at
I do use -w so I should get that warning, but I don't. The variable stays
Just tried, it didn't give me any useful information, I always got any
other warning without PerlWarn on, so I don't think it made any
difference. Anyway, even with PerlWarn on, the error.log still shows
exactly the same output, everything goes well for a while, but then
suddenly my defined($foo)
mon Wilcox/BASE/WilliamsLea
Fax to
Subject Re: Apache::Registry() and strict
Just tried, it didn't give me any useful information, I always got any
other warning without PerlWarn on, so I don't think it made any
difference. Anyway, even with PerlWarn on, the error.log s
Hi there,
On Tue, 7 Nov 2000, Ron Rademaker wrote:
Just tried, it didn't give me any useful information,...
Try 'httpd -X'.
73,
Ged.
Copy to[EMAIL PROTECTED] (bcc: Simon Wilcox/BASE/WilliamsLea)
Bcc Simon Wilcox/BASE/WilliamsLea
Fax to
Subject Re: Apache::Registry() and strict
Just tried, it didn't give me any useful information, I always got any
other warni
@WilliamsLea Time 10:04
Copy to[EMAIL PROTECTED]
Bcc
Fax to
Subject Re: Apache::Registry() and strict
I just read that part of the guide, for the third time today
liamsLea@WilliamsLea Time 10:04
Copy to[EMAIL PROTECTED]
Bcc
Fax to
Subject Re: Apache::Registry() and strict
I just read that part of the gu
: Re: Apache::Registry() and strict
Okay, here's the part where it's going wrong:
my @fields; # The variable that's causing the trouble, should be
undefined after this declaration
my $printedfields = 0;
foreach my $hash_ref (@$data_ref)
{
if (!defined(@fields)) # Passes
)).
- Original Message -
From: Ron Rademaker [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, November 07, 2000 5:26 AM
Subject: Re: Apache::Registry() and strict
Okay, here's the part where it's going wrong:
my @fields; # The variable that's causing
I'm not quite looking for a workaround, I already got one, I'd like to
know why it's going wrong.
From the perlfunc page:
defined - Returns a Boolean value telling whether EXPR has a value
other than the undefined value undef. [...] On the other hand, use
of defined() upon aggregates
CTED]]
Sent: Tuesday, November 07, 2000 7:44 AM
To: lporcano
Cc: [EMAIL PROTECTED]
Subject: Re: Apache::Registry() and strict
I'm not quite looking for a workaround, I already got one, I'd like to
know why it's going wrong.
Ron
On Sun, 7 Nov 1999, lporcano wrote:
It looks like
not defined
defined
HTH
--Geoff
-Original Message-
From: Ron Rademaker [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 07, 2000 7:44 AM
To: lporcano
Cc: [EMAIL PROTECTED]
Subject: Re: Apache::Registry() and strict
I'm not quite looking for a workaround, I alre
At 10:25 AM +0100 11/7/00, [EMAIL PROTECTED] wrote:
On Tue, 7 Nov 2000, Ron Rademaker wrote:
Hi,
You would think so, however every doc I read (including the one you
pointed out to me) told me that perl gives me a warning:
Variable $foo will not stay shared at
I do use -w so I
Hello,
I'm just starting with mod_perl and I'm using Apache::Registry(). The
second line after #!/usr/bin/perl -w is use strict;
But somehow variables I use in the script are still defined if I execute
the script again, in one of the script I said undef $foo at the
end, but I don't think this
21 matches
Mail list logo