- or download this
foreach my $key (%HASH) {
$html =~ s/<!--$key-->/$HASH{$key}/gis;
}#foreach
print $html;
- or download this
foreach my $key (%HASH) {
- or download this
foreach my $key (keys %HASH) {
- or download this
my $userinput = 'Some text';
$html =~ s/<!--usertext-->/$userinput/is;
- or download this
my $userinput = 'Some text :)';
$html =~ s/<!--usertext-->/$userinput/is;