I could be wrong, but I get the strong impression that you are expecting the value of the variable to persist between http requests. CGI::Session contains methods for storing and retrieving data in such cases.
You're right, I was, foolishly, expecting that, but I don't know why. I knew that this was a stateless environment. Thanks for the tip about CGI::Session. I will check it out.