my $table_prefix = 'test_'; my $str = qq{UPDATE ${table_prefix}config SET config_name= ?, config_value = ?}; print "$str\n"; # Ausgabe: #UPDATE test_config SET config_name= ?, config_value = ?