Re: Problems with config files

[email protected] (Jeff Zucker) Sun, 22 May 2005 12:02:32 -0700
Newsgroups perl.kwiki
Message-ID <[email protected]>
Marcelo E. Magallon wrote:

>On Sun, May 22, 2005 at 10:38:12AM -0700, Jeff Zucker wrote:
>
> >    my $var = $self->hub->config->foo_var;
>
> What I have here -- working -- is:
>
> $self->hub->foo->config->foo_var;
>

Aha! Thanks much Marcelo++^9. My test script works if I make that change 
and also either omit the init() or change it from

$self->hub->config->add_file('config/foo.yaml');

To

sub init { $self->hub->config->add_file('foo.yaml'); }

-- 
Jeff