in reply to accessing CGI object from a subroutine in another package.

You can't create an object in one pge and then expect to be able to use it in others. You can still do what you want by a few different ways:

  1. Creating a new CGI object in the module, and then accessing the params from there. Don't forget to use CGI.
  2. Passing the CGI object in main to the function. You will still need to use CGIin the module so that it knows what to expect.