foreach my $key (%HASH) { $html =~ s//$HASH{$key}/gis; }#foreach print $html; #### foreach my $key (%HASH) { #### foreach my $key (keys %HASH) { #### my $userinput = 'Some text'; $html =~ s//$userinput/is; #### my $userinput = 'Some text :)'; $html =~ s//$userinput/is;
## foreach my $key (%HASH) { ##
## foreach my $key (keys %HASH) { ##
## my $userinput = 'Some text'; $html =~ s//$userinput/is; ##
## my $userinput = 'Some text :)'; $html =~ s//$userinput/is;