apache::registry + use strict curiosity

2001-04-26 Thread Eric Kolve
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

Re: apache::registry + use strict curiosity

2001-04-26 Thread Ken Williams
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:

Re: apache::registry + use strict curiosity

2001-04-26 Thread newsreader
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

Re: Apache::Registry() and strict

2000-11-13 Thread remco
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

Re: Apache::Registry() and strict

2000-11-12 Thread Stas Bekman
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

Re: Apache::Registry() and strict

2000-11-07 Thread ed phillips
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

Re: Apache::Registry() and strict

2000-11-07 Thread Ron Rademaker
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

Re: Apache::Registry() and strict

2000-11-07 Thread remco
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

Re: Apache::Registry() and strict

2000-11-07 Thread Ron Rademaker
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)

Re: Apache::Registry() and strict

2000-11-07 Thread Simon_Wilcox
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

Re: Apache::Registry() and strict

2000-11-07 Thread G.W. Haywood
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.

Re: Apache::Registry() and strict

2000-11-07 Thread Ron Rademaker
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

Re: Apache::Registry() and strict

2000-11-07 Thread Simon_Wilcox
@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

Re: Apache::Registry() and strict

2000-11-07 Thread Ron Rademaker
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

2000-11-07 Thread lporcano
: 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

Re: Apache::Registry() and strict

2000-11-07 Thread Ron Rademaker
)). - 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

Re: Apache::Registry() and strict

2000-11-07 Thread lporcano
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

RE: Apache::Registry() and strict

2000-11-07 Thread Geoffrey Young
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

RE: Apache::Registry() and strict

2000-11-07 Thread Ron Rademaker
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

Re: Apache::Registry() and strict

2000-11-07 Thread Paul DuBois
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

Apache::Registry() and strict

2000-11-06 Thread Ron Rademaker
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