Help for this page

Select Code to Download


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