RE: Global Variables - What is in Memory?

2004-11-05 Thread Justin Luster
This clears things up. Thanks for your help. Justin -Original Message- From: Malcolm J Harwood [mailto:[EMAIL PROTECTED] Sent: Friday, November 05, 2004 9:22 AM To: [EMAIL PROTECTED] Subject: Re: Global Variables - What is in Memory? On Friday 5 November 2004 11:50 am, Justin Luster

RE: Global Variables - What is in Memory?

2004-11-05 Thread Perrin Harkins
On Fri, 2004-11-05 at 12:18, Justin Luster wrote: > So what you are saying is that > > http://www.mysite.com/one/MyAdmin.pl > and > http://www.mysite.com/two/MyAdmin.pl > > get different package names (because they are in different directories) > and so stay separate, but because I have declared

Re: Global Variables - What is in Memory?

2004-11-05 Thread Malcolm J Harwood
On Friday 5 November 2004 11:50 am, Justin Luster wrote: > > Apache::Registry should mangle scripts to seperate names so that they > > don't conflict. However if you are using the same package name in each > > case, the last definition to be loaded will be used. Ie. if both > > one/MyAdmin.pl and

RE: Global Variables - What is in Memory?

2004-11-05 Thread Justin Luster
package goes into a common package name and will be shared by both scripts? Thanks Perrin. -Original Message- From: Perrin Harkins [mailto:[EMAIL PROTECTED] Sent: Friday, November 05, 2004 9:03 AM To: Justin Luster Cc: [EMAIL PROTECTED] Subject: Re: Global Variables - What is in Memory? Hi

Re: Global Variables - What is in Memory?

2004-11-05 Thread Perrin Harkins
Hi Justin, > use strict; > package mylib; > # Globals: Set them below > > $mylib::strGlobalStudyName = ""; You could also just say "our $strGlobalStudyName;" here. > I call this initialize function every time the script runs. Anyway I > forgot and so one of my global variables was not initiali

RE: Global Variables - What is in Memory?

2004-11-05 Thread Justin Luster
nt: Friday, November 05, 2004 7:09 AM To: [EMAIL PROTECTED] Subject: Re: Global Variables - What is in Memory? On Thursday 4 November 2004 09:53 pm, Justin Luster wrote: > Problem #1: > I forgot to initialize a global variable! Bummer. In my code I declare > global variables like this:

Re: Global Variables - What is in Memory?

2004-11-05 Thread Malcolm J Harwood
On Thursday 4 November 2004 09:53 pm, Justin Luster wrote: > Problem #1: > I forgot to initialize a global variable! Bummer. In my code I declare > global variables like this: > use strict; > package mylib; > # Globals: Set them below > $mylib::strGlobalStudyName = ""; > I then initialize them