in reply to Help with objects.

I am not really sure, but, do you want to do something similar to this?
package TestClass; use ConfigFile (); #... sub anything { #... my $conf = ConfigFile->new(); #... }

Replies are listed 'Best First'.
Re^2: Help with objects.
by STork2000 (Novice) on Mar 14, 2006 at 11:10 UTC
    It's a very siple variant. But we look for something - sub anything { $conf=SUPER::conf; }
      My English is poor, so I am not able to understand, what do you really want...
      You have two modules, both implements method 'new'. So you can create instance of the class everywhere in your code, with no care about ISA or SUPER...
      Is your problem that the $conf does not match your criteria and you would rather used the class-parent of the $conf instance?