in reply to Perl variable names stored in mysql fields

use strict; my $header = '<html><head><title>$cfg</title></head></html>'; my $cfg = 'This is my title'; my $out; eval '$out = "'.$header.'"'; print $out;

eval

update - fixed typo/thinko