bhushanQA has asked for the wisdom of the Perl Monks concerning the following question:
Return a above subroutine,which is working perfectly, but I want to return ini files' section in to hash, but it is giving error "Read_INI_files.pm did not return a true value" My Ini file contains below configuration:sub Read_INI_files_get_initialData{ my ( %ini_file, $ini_sect ); tie %ini_file, 'IniFiles', ( -file => "/home/testtool/config/InitialData.ini" ); foreach $ini_sect ( keys %ini_file ) { %$ini_sect = %{ $ini_file{$ini_sect} }; }
what and how should I return value to hash.[section1] SQL1 = select * from .... SQL2 = Insert into table <tablename> and so on.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Return a value
by Corion (Patriarch) on Jul 06, 2015 at 07:03 UTC | |
|
Re: Return a value
by vinoth.ree (Monsignor) on Jul 06, 2015 at 07:16 UTC | |
by bhushanQA (Sexton) on Jul 06, 2015 at 09:29 UTC | |
|
Re: Return a value
by chacham (Prior) on Jul 06, 2015 at 14:30 UTC | |
by 1nickt (Canon) on Jul 06, 2015 at 14:37 UTC | |
|
Re: Return a value
by 1nickt (Canon) on Jul 06, 2015 at 09:45 UTC | |
by bhushanQA (Sexton) on Jul 06, 2015 at 10:11 UTC | |
by Corion (Patriarch) on Jul 06, 2015 at 10:29 UTC | |
by bhushanQA (Sexton) on Jul 06, 2015 at 10:32 UTC | |
by 1nickt (Canon) on Jul 06, 2015 at 11:13 UTC | |
|