CGI.pm not maintaing values..

1999-11-06 Thread Alex Krohn
Hi, I've read through the guide, and tried to search through the list, but CGI.pm is a pretty common keyword, ;). This script which I thought should work fine under mod_perl using Apache::Registry doesn't: #!/usr/local/bin/perl # u

Re: CGI.pm not maintaing values..

1999-01-03 Thread Bruce Johnson
Ofer Inbar wrote: > book. I happened to stumble across this bug before I'd read that > chapter, and it took literally something like 20 hours of coding and > debugging time to figure out what was going on. Then I saw it in the Only 20 hours? Man, I burned more hours than that! If only we coul

Re: CGI.pm not maintaing values..

1999-01-03 Thread Frank D. Cringle
Ofer Inbar <[EMAIL PROTECTED]> writes: > Alex Krohn <[EMAIL PROTECTED]> wrote: > (mis)handles lexically scoped variables. This oddity only comes into > play if you use a lexical variable in a block *and* a sub-block of > that block, and you run that same code multiple times, and the values > are

Re: CGI.pm not maintaing values..

1999-01-03 Thread Alex Krohn
On Fri, 05 Nov 1999 14:12:43 -0500 Eugene Miretskiy <[EMAIL PROTECTED]> wrote: > Take a look at: > http://perl.apache.org/guide/obvious.html#my_scoped_variable_in_nested_s Thanks, that was just the part I was looking for. Cheers, Alex Gossamer Threads Inc. -

RE: CGI.pm not maintaing values..

1999-01-03 Thread Young, Geoffrey S.
($in->param('val')); sub foobar { my @args = shift; print "\n\n\n:Sub Value: ", $args[0], "\n"; } for example - just on of a myriad of ways around it... --Geoff > -Original Message- > From: Alex Krohn [SMTP:[EMAIL PROTECTED]] > Sent: Frid

Re: CGI.pm not maintaing values..

1999-01-03 Thread Ofer Inbar
Alex Krohn <[EMAIL PROTECTED]> wrote: > #!/usr/local/bin/perl > # > use CGI; > use strict; > my $in = new CGI; > print $in->header(); > print "Init Value: ", $in->param('val'), "\n"; > &foobar(); > > sub foobar { >print "Sub Val

Re: CGI.pm not maintaing values..

1999-01-03 Thread Tobias Hoellrich
You read through the guide? Well, you must have missed this section :-) http://perl.apache.org/guide/porting.html#Sometimes_it_Works_Sometimes_it_ Tobias At 10:54 AM 11/5/99 -0800, you wrote: >Hi, > >I've read through the guide, and tried to search through the list, but >CGI.pm is a pretty comm

Re: CGI.pm not maintaing values..

1999-01-03 Thread Christoph Wernli
Alex, check out http://perl.apache.org/guide/obvious.html#my_scoped_variable_in_nested_s Cheers, -Christoph Alex Krohn wrote: > > Hi, > > I've read through the guide, and tried to search through the list, but > CGI.pm is a pretty common keyword, ;). This script which I thought > should work

CGI.pm not maintaing values..

1999-01-03 Thread Alex Krohn
Hi, I've read through the guide, and tried to search through the list, but CGI.pm is a pretty common keyword, ;). This script which I thought should work fine under mod_perl using Apache::Registry doesn't: #!/usr/local/bin/perl # u