ItsyBitsy has asked for the wisdom of the Perl Monks concerning the following question:
The code i am using is this:[password] password=mypass
But the above code simply prints an array reference. How do i get the password stored in my ini file.use strict; use warnings; use Config::Any; my @files; $files[0]="C:\\wamp\\www\\password.ini"; my $cfg = Config::Any->load_files({files =>\@files,use_ext => 1 }); print $cfg;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using config::any
by kcott (Archbishop) on May 30, 2012 at 02:42 UTC | |
by ItsyBitsy (Novice) on May 31, 2012 at 03:02 UTC | |
by kcott (Archbishop) on May 31, 2012 at 10:23 UTC | |
by ItsyBitsy (Novice) on Jun 01, 2012 at 08:03 UTC | |
|
Re: Using config::any
by NetWallah (Canon) on May 30, 2012 at 02:42 UTC | |
by ItsyBitsy (Novice) on May 31, 2012 at 03:16 UTC | |
by NetWallah (Canon) on May 31, 2012 at 05:38 UTC | |
by ItsyBitsy (Novice) on Jun 01, 2012 at 08:01 UTC | |
|
Re: Using config::any
by thomas895 (Deacon) on May 30, 2012 at 04:04 UTC | |
by ItsyBitsy (Novice) on May 31, 2012 at 02:54 UTC | |
by kcott (Archbishop) on May 31, 2012 at 10:58 UTC | |
by ItsyBitsy (Novice) on Jun 01, 2012 at 08:06 UTC |