Help for this page

Select Code to Download


  1. or download this
    my @variables = $_ =~ m/<\?--(\S+?)-->/g;
    
  2. or download this
    my @variables = $line =~ /<\?--(\S+?)-->/g;
    
  3. or download this
    my @variables = /<\?--(\S+?)-->/g;
    
  4. or download this
      for my $variable ( @variables ){
        # replace the tag with the value of the variable
        # if there is one.
        s/<\?--$variable-->/$$variable/g if $$variable;
      }