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>
In reply to Parameters not in order by using Config::Tiny by bhushanQA
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |