aakikce has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
i am facing a problem in assigning an array into hash.
i have a ini file like
article=>art chapter=>chap section=>sec
My code to access the values in the ini file
open (INI, "<ReNLM.ini") || "error ini file"; while (<INI>) { chomp($_); $con[$i] = $_; $i++ } $" = ", "; %conval = qw(@con); print $conval{article};
i didn't get outpupt
thanks
Aakikce
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: assign an array into hash
by GrandFather (Saint) on Apr 26, 2007 at 09:31 UTC | |
Re: assign an array into hash
by rinceWind (Monsignor) on Apr 26, 2007 at 09:33 UTC | |
Re: assign an array into hash
by johngg (Canon) on Apr 26, 2007 at 09:37 UTC | |
Re: assign an array into hash
by akho (Hermit) on Apr 26, 2007 at 10:15 UTC |
Back to
Seekers of Perl Wisdom