in reply to Embedding fuction output

I was looking at a way to do it with something like

$str = <<'EOPAGE'; Some html TNAV Some more html EOPAGE $str =~ s/TNAV/$tnav/;
but it don't work.. maybe best to create a variable by the same name as a keyword that was delimited by % marks..?