in reply to Can I move a substitution string into a constant?
Constants defined using this module cannot be interpolated into strings like variables.
You can however, use the nifty-ugly obfu trick:
use constant TABLE_NAME => 'table'; my $string = "The constant TABLE_NAME contains '@{[TABLE_NAME]}'.\n";
...or to fit your particular needs:
$stmt =~ s/@{[TABLE_NAME]}.//g;
Dave
|
|---|