Hello everyone !!
I'm really a newbie developing perl modules. I have and issue
I made a module that loads when Apache starts, in my module I declare a
hash as a global in order to be accesed in any place in my module,
my $hash;
sub x{
$foo = shift;
......
......
$hash->{x} = $foo;
}
sub y{
....
....
print $hash->{x};
}
in a webapageX I call the x sub and another webpageY I call y sub, I
access webpageX once to put some value to the $hash so the trouble
starts when I'm access the webpageY from diferent locations and $hash
lost its value declare in webpageX
I suppose that when I initialice the module when Apache starts it will
hold that $hash variable available for every page that calls that
module, is that right ? or ervrytime that it calls webpageY is a new
instance of the module???
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>