my $userinput = 'Some text :)'; $html =~ s//$userinput/is;