my $variable = 'This is a value!'; my $variable_name = '$variable'; my $template = snarf('template.htm'); $template =~ s/\Q$variable_name\E/$variable/g; print $template; sub snarf { local $/ = undef; my $template_file = shift; open F, $template_file or die "can't open $template_file"; my $template = ; close F; $template; } #### Title The variable is : $variable


Bottom text