Hi

Thanks for the answer. It clears up a lot, now the question is how?  I have
tried passing the object but cannot sort the syntax. I wil now go play with
creating a new object as well but I would have expected that to not contain
the data I want. Easy enough to test.

Thanks

Kevin

Modules should be reusable.  You're requiring a module "casttime_html.pm",
that needs a CGI
object.  As a matter of good coding practice, you have two alternatives:

  1.  Always pass it the CGI object that it needs.
  2.  Instantiate a new CGI object within it
      (probably with a $q = CGI->new("") syntax so it doesn't
      clobber any form data).

Reply via email to