in reply to Re: Using config::any
in thread Using config::any

I used the following code(hard coded)
use strict; use warnings; use Config::Any; my @files = ("C:\\wamp\\password.ini"); my $cfg = Config::Any->load_files({files =>\@files,use_ext => 1 }); print $cfg->[0]{'password.ini'}{password}{password} . "\n"; # prints
However it throws an error saying
Use of uninitialized value in concatenation (.) or string at caller.pl + line 39.

Replies are listed 'Best First'.
Re^3: Using config::any
by NetWallah (Canon) on May 31, 2012 at 05:38 UTC
    You can use the for-loops in my earlier message to figure out what it is expecting, but I suspect it is something like this:
    print $cfg->[0]{"C:\\wamp\\password.ini"}{password}{password} . "\n" +; #

                 I hope life isn't a big joke, because I don't get it.
                       -SNL

      That worked. Thanks.