bhushanQA has asked for the wisdom of the Perl Monks concerning the following question:
SQLdata.ini has below sections and parameters:my $config = Config::Tiny->read('SQLdata.ini'); foreach my $section (keys %$config) { print "[$section]\n"; foreach my $parameter (keys %{$config->{$section}}) { print "$parameter = $config->{$section}->{$par +ameter}\n"; } #return $parameter; }
how can I achieve output in order??[insert] SQL1 = insert into table <table1> SQL2 = insert into table <table2> SQL3 = insert into table <table3> SQL4 = insert into table <table4> [Truncate] SQL1= truncate table <tablename1> SQL2= truncate table <tablename2> [update] SQL1 = update into <table1> SQL2 = update into <table2> output is: [Truncate] SQL2= truncate table <tablename2> SQL1= truncate table <tablename1> [insert] SQL4 = insert into table <table4> SQL2 = insert into table <table2> SQL3 = insert into table <table3> SQL1 = insert into table <table1> [update] SQL2 = update into <table2> SQL1 = update into <table1>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Parameters not in order by using Config::Tiny
by Corion (Patriarch) on Jul 06, 2015 at 13:07 UTC | |
|
Re: Parameters not in order by using Config::Tiny
by GotToBTru (Prior) on Jul 06, 2015 at 13:12 UTC | |
by bhushanQA (Sexton) on Jul 06, 2015 at 13:34 UTC | |
|
Re: Parameters not in order by using Config:Tiny
by 1nickt (Canon) on Jul 06, 2015 at 14:26 UTC | |
by Corion (Patriarch) on Jul 06, 2015 at 14:29 UTC | |
by 1nickt (Canon) on Jul 06, 2015 at 15:02 UTC | |
by Corion (Patriarch) on Jul 06, 2015 at 15:11 UTC | |
|
Re: Parameters not in order by using Config::Tiny
by marioroy (Prior) on Jul 06, 2015 at 17:09 UTC | |
by bhushanQA (Sexton) on Jul 07, 2015 at 10:41 UTC |