I have few doubts:
what you have is little concern about doing your own work
1.Why you can given different database names like (db1,db2,db3).
because it is an generic example, that someone with any ability at all to think for themselves should be able to modify by themselves to suit their needs
My database name should be a_$site1_current.Only the $site1 should be changed as per hash.
A normal person should be able to fix the example themselves
2,In the above code i had not fount any words which matches as like a_site1_current.
Well what could you change to fix that? Can you not even think for yourself that much? Or do we need to write all your code for you? Are you going to pay us to do that? You need to tell your boss that you are not skilled enough to do your own work.
site1 => { host => 'dam.sd.aog.com',
db =>'a_site1_current',
user =>'ad',
pw= >'123'
},
ps: i dont see 36 lines in any here script so far, so of course you havent shown us what you have actually tried, and if this is actually a cgi program you wont have a lot of luck with GetOptions, you will need something like use CGI; my $site=$q->param('site'); instead. |