in reply to Is it possible to call prepare statement with a variable of a variable?

Use a hash:
my %queries = ( T_Doc_Request => qq{select ...}, N_Doc_Request => qq{select ...}, ... ); ... my $sth = $dbh->prepare($queries{$statement});
  • Comment on Re: Is it possible to call prepare statement with a variable of a variable?
  • Download Code