in reply to Safe and sharing variables

Nevermind... Of course I figure it out 20 seconds after I post. The "my $maxCounter" needs to be "our $maxCounter" in order for you to be able to share. (Because share behaves like export).