Re: question on global variable / scope

2003-07-05 Thread Bob Showalter
David Granas wrote: > Hi, > > Im just learning Perl and was a little confused with why I couldnt > prevent my subroutines from reading variables from the main program. > Here is an example: > > use strict; > > my $var = 1; > > test(); > > sub test > { > print $var; > } > > I had thought that

Re: Cookies and mod_perl

2003-07-05 Thread Bob Showalter
Dennis Stout wrote: > Is there any difference in setting cookies between operating under > just general CGI and when using an Apache webserver and mod_perl? By "general CGI", if you mean mod_cgi, then no, there is no difference. > > I got a program I'm writing that generates every page it dishes

disabling the use of browser history

2003-07-05 Thread Alexander Blüm
hello!!! I'm writing a database frontend based on perl-CGI. Each query is being cached in a file with the current session-ID. The reason for this doing is that some queries do take a very long time to process and have a large output. If I want to see the next 50 results using the SQL 'LIMIT' a

Re: question on global variable / scope

2003-07-05 Thread Randal L. Schwartz
> "Wiggins" == Wiggins D'Anconia <[EMAIL PROTECTED]> writes: Wiggins> Excellent reading on the scoping of variables in Perl can be found here: Wiggins> http://perl.plover.com/FAQs/Namespaces.html I also have a recent column on scoping at:

Re: disabling the use of browser history

2003-07-05 Thread Greenhalgh David
HTH Dave On Saturday, July 5, 2003, at 10:12 pm, Alexander Blüm wrote: hello!!! I'm writing a database frontend based on perl-CGI. Each query is being cached in a file with the current session-ID. The reason for this doing is that some queries do take a very long time to proces