[Gas] another dumb (mod)Perl question

Sigfried Gold sigfried at onthejob.net
Fri May 25 10:58:23 CDT 2001


if I make enclosure variable in a class included by the
main .pm file in a gas project, do those become global
to each cgi invocation or global to the server (shared
between all cgi invocations)?

how would i pick between one and the other?



so:

GasEx.pm:
---------
package GasEx;
use SpecialObject;


SpecialObject.pm:
---------
package SpecialObject;

{
	my $enclosureHash = {};

	sub new {
		$enclosureHash->{'something'} = 'something';
	}

}


is $enclosureHash shared by multiple cgi invocations?




More information about the Gas mailing list