in reply to Re^3: CGI::Application::Session and Inheritance
in thread CGI::Application::Session and Inheritance

Ok, sorrry I am still a little (ok, a lot) confused.
Right now I have (cgi script)->(Index.pm)->(module1.pm)
Are you saying I should be doing everything that requires access to my session object needs to be done in Index.pm? Or if I create an instance of module1 in my cgi script, it must be done in that module? Thanks for your insite, I will contine to try to make sense yours and Joost's sugestions. Thanks
  • Comment on Re^4: CGI::Application::Session and Inheritance

Replies are listed 'Best First'.
Re^5: CGI::Application::Session and Inheritance
by mpeters (Chaplain) on Apr 19, 2005 at 18:53 UTC
    as was said above, you need to create an instance of you child class (module1), not your parent class (Index). The parent class knows nothing about the child class. That's what OOP is about.