in reply to Re^2: Help with objects.
in thread Help with objects.

Pass your $conf object as a parameter to your TestClass method :
sub anything { my $self=shift; my $conf = shift; # do whatever you want here... return; }
And call it this way:
my $conf = new Config; my $object = new TestClass; $object->anything($conf);
Another option is to use a singleton, but it may start endless discussions, see what is a propper way to make a chunk of data accessible to all my packages for retrieval and modification ? for the gory details :)