in reply to Is it possible to call prepare statement with a variable of a variable?
my %queries = ( T_Doc_Request => qq{select ...}, N_Doc_Request => qq{select ...}, ... ); ... my $sth = $dbh->prepare($queries{$statement}); [download]